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

Support newly added node install and resume snapshot #1439

Merged
merged 3 commits into from
May 19, 2021
Merged

Conversation

Linary
Copy link
Contributor

@Linary Linary commented Apr 29, 2021

Change-Id: I974d9ec3d05eed02123191a8fe0916163fe59811

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.
*/
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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
@Linary Linary changed the title Remove decompressSnapshot operation when resume snapshot Support newly added node install and resume snapshot May 13, 2021
*/
this.compressJraftSnapshotDir(writer, jraftSnapshotPath, done);
this.compressSnapshotDir(writer, snapshotDirMaps, done);
this.deleteSnapshotDirs(snapshotDirMaps.keySet());
Copy link
Contributor

Choose a reason for hiding this comment

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

catch compressSnapshotDir and deleteSnapshotDirs

Change-Id: I3b0117fb9eddf2f4775f17ef1a30775367a48020
@codecov
Copy link

codecov bot commented May 18, 2021

Codecov Report

Merging #1439 (5558390) into master (706ffe5) will decrease coverage by 0.15%.
The diff coverage is 10.98%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ Complexity Δ
...om/baidu/hugegraph/backend/store/BackendStore.java 84.61% <ø> (ø) 5.00 <0.00> (ø)
...ugegraph/backend/store/raft/StoreSnapshotFile.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ugegraph/backend/store/raft/StoreStateMachine.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...raph/backend/store/rocksdb/RocksDBStdSessions.java 64.45% <0.00%> (ø) 37.00 <0.00> (ø)
.../hugegraph/backend/store/rocksdb/RocksDBStore.java 69.61% <43.47%> (-1.79%) 71.00 <1.00> (+1.00) ⬇️
.../java/com/baidu/hugegraph/auth/ResourceObject.java 47.05% <0.00%> (-29.14%) 7.00% <0.00%> (ø%)
...u/hugegraph/backend/store/mysql/MysqlSessions.java 55.47% <0.00%> (-13.31%) 29.00% <0.00%> (ø%)
...om/baidu/hugegraph/task/StandardTaskScheduler.java 75.60% <0.00%> (-0.50%) 85.00% <0.00%> (ø%)
...in/java/com/baidu/hugegraph/api/graph/EdgeAPI.java 54.21% <0.00%> (ø) 0.00% <0.00%> (ø%)
...n/java/com/baidu/hugegraph/version/ApiVersion.java 75.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
... and 14 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 706ffe5...5558390. Read the comment docs.

@javeme javeme merged commit 558ab02 into master May 19, 2021
@javeme javeme deleted the remove-decompress branch May 19, 2021 11:30
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.

3 participants