-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage hang on terminate #3005
Comments
Mark, we should also add integration test to check cluster graceful termination later @kikimo @HarrisChu |
|
This problem happends in ubuntu 20.04, but cannot be reproduced in cent7.9.2009, the above stack show a thread is blocking on
so it might be a problem relate to pthread implementation, anyway, we'd better terminate a working thread gracefully at the end of running. |
Fixed in #3014 |
* copy local id when clone space * add test * fix bug * fix bug --------- Co-authored-by: Sophie <[email protected]>
* copy local id when clone space * add test * fix bug * fix bug --------- Co-authored-by: Sophie <[email protected]> Co-authored-by: Doodle <[email protected]>
Please check the FAQ documentation before raising an issue
Please check the FAQ documentation and old issues before raising an issue in case someone has asked the same question that you are asking.
Describe the bug (must be provided)
storage hand on terminate, this seems to be a bug introduced by #2843 .
Your Environments (must be provided)
uname -a
g++ --version
orclang++ --version
lscpu
a3ffc7d8
)How To Reproduce(must be provided)
start a cluster, execute
kill ${PID_OF_STORAGED}
, it will not exit, pstack shows:code around
AdminTaskManager.cpp:47
:nebula/src/storage/admin/AdminTaskManager.cpp
Lines 39 to 54 in 9462d35
and the log shows:
seems that the thread
unreportedAdminThread_
waiting on the cond varunreportedCV_
is blocking the whole process from exiting.Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Provide logs and configs, or any other context to trace the problem.
The text was updated successfully, but these errors were encountered: