-
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
fix meta can't be stopped #2240
Conversation
src/daemons/MetaDaemon.cpp
Outdated
gKVStore.reset(); | ||
} | ||
if (gServer) { | ||
gServer->stop(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why stop kvstore firstly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, fixed.
Codecov Report
@@ Coverage Diff @@
## master #2240 +/- ##
==========================================
- Coverage 86.54% 86.46% -0.08%
==========================================
Files 644 647 +3
Lines 63643 63889 +246
==========================================
+ Hits 55079 55242 +163
- Misses 8564 8647 +83
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix meta can't be stopped * address comments
* fix meta can't be stopped * address comments
…ds (vesoft-inc#2240) Co-authored-by: Sophie <[email protected]> Co-authored-by: Yichen Wang <[email protected]> Co-authored-by: Sophie <[email protected]>
3-replica meta, stop two followers at first, then leader at last. If leader receive a heartbeat from storage, it will retry forever to updateHostInfo.
The root reason is we didn't stop and release kvstore when we stop daemon.