Uh oh!
There was an error while loading. Please reload this page.
HDDS-8208. [SNAPSHOT] Allow om snapshot bootstrap tarballs to be incremental. - #4770
Conversation
smengcl
left a comment
There was a problem hiding this comment.
Thanks @GeorgeJahad for working on this. Overall lgtm. Some comments inline, mostly nits.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| public static final TimeDuration | ||
| OZONE_OM_SNAPSHOT_PROVIDER_REQUEST_TIMEOUT_DEFAULT = | ||
| TimeDuration.valueOf(5000, TimeUnit.MILLISECONDS); | ||
| TimeDuration.valueOf(300000, TimeUnit.MILLISECONDS); |
There was a problem hiding this comment.
5s timeout to 5m is quite a jump. If this default config value revision is intended (i.e. not just for debugging), pls change ozone-default.xml correspondingly:
| assertEquals(tree1Files, tree2Files); | ||
| } |
There was a problem hiding this comment.
nit: clean it up by recursively deleting tempDir at the end?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Siyao Meng <50227127+smengcl@users.noreply.github.com>
This reverts commit 02166d1.
GeorgeJahad
commented
Jun 16, 2023
@smengcl the checkstyle error is actually because I haven't merged to the latest master. Fixing now. |
smengcl
commented
Jun 16, 2023
Thanks @GeorgeJahad for the improvement. |
What changes were proposed in this pull request?
The incremental bootstrapping feature, currently in master, only treats the active fs sst files incrementally. This PR extends that functionality to the om snapshot related sst files.
The feature is currently implemented with an exclude list. The follower generates a list of the active sst files it has currently received from the leader, and passes that list to the leader as part of the next http ratis snapshot request. The leader then excludes those sst files from next tarball it sends to the follower.
In this PR, the follower adds the existing om snapshot sst files to the exclude list. The leader than uses that list to determine which snapshot sst files to exclude as well as which can be used as targets for hard links.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8208
How was this patch tested?
Unit/Integration tests added