Describe the bug
A clear and concise description of what the bug is.
import mars
import mars.dataframe as md
import numpy as np
import pandas as pd
mars.new_ray_session(backend="ray", default=True)
s = np.random.RandomState(0)
raw = pd.DataFrame(s.rand(100, 4), columns=list("abcd"))
df = md.DataFrame(raw, chunk_size=30)
r = df.describe().execute()
print(r)
The hang at exit is because after execution, the new_ray_session does not stop isolation, then the tileable object is gc, it tries to creates a new DecrefThread. But, this is the exiting stage, creating a new thread will be hangs at thread.start().
To Reproduce
To help us reproducing this bug, please provide information below:
Your Python version
The version of Mars you use
Versions of crucial packages, such as numpy, scipy and pandas
Full stack of the error.
Minimized code to reproduce the error.
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
Describe the bug A clear and concise description of what the bug is.
Hang stack:
The hang at exit is because after execution, the
new_ray_session
does not stop isolation, then the tileable object is gc, it tries to creates a newDecrefThread
. But, this is the exiting stage, creating a new thread will be hangs at thread.start().To Reproduce To help us reproducing this bug, please provide information below:
Expected behavior A clear and concise description of what you expected to happen.
Additional context Add any other context about the problem here.