-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-13906. Reduce Bootstrap Write lock time on OM during bootstrapping execution. #9585
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
base: master
Are you sure you want to change the base?
Conversation
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 for the patch @sadanand48 . Have a few doubts with the implementation
| Files.deleteIfExists(link.toPath()); | ||
| } | ||
| } | ||
| writeHardlinkFile(conf, hardLinkFileMap, archiveOutput); |
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.
We shouldn't be writing the hardLinkFile in all iterations
| path = getDbStore().getDbLocation().toPath().resolve(dbFile.getFileName()).toAbsolutePath().toString(); | ||
| } | ||
| hardLinkFileMap.put(path, fileId); | ||
| omdbArchiver.getHardLinkFileMap().put(path, fileId); |
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.
We can have this logic inside recordFileEntry
|
@rnblough Do you wanna take a look at this patch? |
What changes were proposed in this pull request?
Because of fixes in HDDS-13905 an entire BG service task would be blocked because of bootstrap operation running on a leader OM. One possible improvement here would be to just to create a hardlink(which we already do to ensure this file doesn't get deleted by rocksdb operations but we also write the file into the Tarball stream synchronously
ozone/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/Archiver.java
Lines 135 to 155 in 96390ac
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13906
How was this patch tested?
Will add tests