-
Notifications
You must be signed in to change notification settings - Fork 521
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
Support newly added node install and resume snapshot #1439
Conversation
Change-Id: I974d9ec3d05eed02123191a8fe0916163fe59811
* Don't perform decompression, it's possible to trigger the bug of | ||
* IOUtils.skip() infinite loop. I don't know how this bug is | ||
* generated yet. | ||
*/ |
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.
where is the snapshot data from
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.
from linked directory. The decompressed file is just manifest.
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.
What is the snapshot recovery process when add newly raft node?
Change-Id: I0bb904a967eaada26b51b9b47bbfde5d31653bd1
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStore.java
Outdated
Show resolved
Hide resolved
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStore.java
Outdated
Show resolved
Hide resolved
*/ | ||
this.compressJraftSnapshotDir(writer, jraftSnapshotPath, done); | ||
this.compressSnapshotDir(writer, snapshotDirMaps, done); | ||
this.deleteSnapshotDirs(snapshotDirMaps.keySet()); |
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.
catch compressSnapshotDir and deleteSnapshotDirs
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStore.java
Outdated
Show resolved
Hide resolved
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStore.java
Outdated
Show resolved
Hide resolved
Change-Id: I3b0117fb9eddf2f4775f17ef1a30775367a48020
Codecov Report
@@ Coverage Diff @@
## master #1439 +/- ##
============================================
- Coverage 62.21% 62.05% -0.16%
- Complexity 5857 5861 +4
============================================
Files 381 381
Lines 32135 32248 +113
Branches 4504 4527 +23
============================================
+ Hits 19994 20013 +19
- Misses 10089 10179 +90
- Partials 2052 2056 +4
Continue to review full report at Codecov.
|
Change-Id: I974d9ec3d05eed02123191a8fe0916163fe59811