-
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 crash when drop space #3185
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3185 +/- ##
==========================================
+ Coverage 85.17% 85.22% +0.04%
==========================================
Files 1294 1295 +1
Lines 118261 118264 +3
==========================================
+ Hits 100733 100793 +60
+ Misses 17528 17471 -57
Continue to review full report at Codecov.
|
@@ -124,8 +124,8 @@ RocksEngine::RocksEngine(GraphSpaceID spaceId, | |||
} | |||
CHECK(status.ok()) << status.ToString(); | |||
db_.reset(db); | |||
partsNum_ = allParts().size(); | |||
extractorLen_ = sizeof(PartitionID) + vIdLen; |
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 can this modification avoid crash?
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.
allParts
need to be correct, if it is initialized before we set extractorLen_
, allParts
will be wrong
* fix crash when drop space (#3185) * fix geography default value check (#3189) Co-authored-by: Doodle <[email protected]> Co-authored-by: jie.wang <[email protected]>
Reproduce procedure:
show hosts