-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-8208. [SNAPSHOT] Allow om snapshot bootstrap tarballs to be incremental. #4770
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
Conversation
smengcl
left a comment
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.
Thanks @GeorgeJahad for working on this. Overall lgtm. Some comments inline, mostly nits.
hadoop-hdds/framework/src/test/java/org/apache/hadoop/hdds/utils/TestRDBSnapshotProvider.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/RDBSnapshotProvider.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/RDBSnapshotProvider.java
Show resolved
Hide resolved
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: clean it up by recursively deleting tempDir at the end?
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServlet.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServlet.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Siyao Meng <[email protected]>
smengcl
left a comment
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.
lgtm, pending CI
This reverts commit 02166d1.
|
@smengcl the checkstyle error is actually because I haven't merged to the latest master. Fixing now. |
|
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