Skip to content
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

Exit the process gracefully #1093

Merged
merged 10 commits into from
Nov 13, 2021
Merged

Exit the process gracefully #1093

merged 10 commits into from
Nov 13, 2021

Conversation

chaoyli
Copy link
Contributor

@chaoyli chaoyli commented Nov 7, 2021

It's to used to detect memory leak upon exiting the process.
Every thread in StorageEngine is already check the existed state.
If the existed state is set to be true, the thread will be exited.
But the the thread and the class in StarRocks is not seperated very well.
So the pull request do the best effort to the graceful exiting.

@chaoyli chaoyli force-pushed the main branch 5 times, most recently from a55632d to 9d97e0e Compare November 9, 2021 09:51
@chaoyli
Copy link
Contributor Author

chaoyli commented Nov 9, 2021

run starrocks_be_unittest

@chaoyli chaoyli force-pushed the main branch 2 times, most recently from 8fead21 to 103f2a0 Compare November 9, 2021 15:47
@chaoyli chaoyli force-pushed the main branch 2 times, most recently from d42c20e to 4093e0c Compare November 11, 2021 08:12
@chaoyli
Copy link
Contributor Author

chaoyli commented Nov 11, 2021

run starrocks_be_unittest

It's to used to detect memory leak upon exiting the process.
Every thread in StorageEngine is already check the existed state.
If the existed state is set to be true, the thread will be exited.
But the the thread and the class in StarRocks is not seperated very well.
So the pull request do the best effort to the graceful exiting.
It's to used to detect memory leak upon exiting the process.
Every thread in StorageEngine is already check the existed state.
If the existed state is set to be true, the thread will be exited.
But the the thread and the class in StarRocks is not seperated very well.
So the pull request do the best effort to the graceful exiting.
@chaoyli chaoyli merged commit 0f2573a into StarRocks:main Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants