Support newly added node install and resume snapshot by Linary · Pull Request #1439 · apache/hugegraph

@Linary

Change-Id: I974d9ec3d05eed02123191a8fe0916163fe59811

@Linary

Change-Id: I974d9ec3d05eed02123191a8fe0916163fe59811

javeme

* 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.
*/

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

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.

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?

@Linary

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

javeme

*/
this.compressJraftSnapshotDir(writer, jraftSnapshotPath, done);
this.compressSnapshotDir(writer, snapshotDirMaps, done);
this.deleteSnapshotDirs(snapshotDirMaps.keySet());

Choose a reason for hiding this comment

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

catch compressSnapshotDir and deleteSnapshotDirs

@Linary

Change-Id: I3b0117fb9eddf2f4775f17ef1a30775367a48020

javeme

@codecov

zhoney

@javeme javeme deleted the remove-decompress branch

May 19, 2021 11:30