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

fix meta can't be stopped #2240

Merged
merged 2 commits into from
Jul 21, 2020
Merged

fix meta can't be stopped #2240

merged 2 commits into from
Jul 21, 2020

Conversation

critical27
Copy link
Contributor

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.

gKVStore.reset();
}
if (gServer) {
gServer->stop();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why stop kvstore firstly.

Copy link
Contributor Author

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-commenter
Copy link

Codecov Report

Merging #2240 into master will decrease coverage by 0.07%.
The diff coverage is 95.12%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/kvstore/RocksEngineConfig.cpp 73.80% <ø> (ø)
src/kvstore/raftex/RaftPart.h 98.21% <ø> (ø)
src/meta/processors/BaseProcessor.h 81.39% <ø> (ø)
src/storage/query/QueryBaseProcessor.inl 85.21% <20.00%> (-0.29%) ⬇️
src/graph/InterimResult.cpp 44.25% <66.66%> (+0.26%) ⬆️
src/graph/CreateEdgeIndexExecutor.cpp 75.60% <75.00%> (-1.81%) ⬇️
src/parser/test/ScannerTest.cpp 67.30% <75.00%> (-29.62%) ⬇️
...ta/processors/indexMan/CreateTagIndexProcessor.cpp 84.15% <82.60%> (-1.03%) ⬇️
...a/processors/indexMan/CreateEdgeIndexProcessor.cpp 85.57% <88.88%> (+0.21%) ⬆️
src/common/base/ICord.h 90.82% <90.82%> (ø)
... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93d11b3...eb19bc1. Read the comment docs.

Copy link
Contributor

@liuyu85cn liuyu85cn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dangleptr dangleptr merged commit 31c3d24 into vesoft-inc:master Jul 21, 2020
@critical27 critical27 deleted the fix branch July 30, 2020 02:33
xuguruogu pushed a commit to xuguruogu/nebula that referenced this pull request Aug 5, 2020
* fix meta can't be stopped

* address comments
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* fix meta can't be stopped

* address comments
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants