-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-10242. [hsync] Handle penultimate block finalization. #6164
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
|
@ChenSammi @jojochuang Please help to review, thanks. |
|
This PR needs a rebase. Sorry. |
e95b35a to
8aa8a36
Compare
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/LeaseKeyInfo.java
Outdated
Show resolved
Hide resolved
jojochuang
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.
Makes sense.
Looks like a lot of duplicate code in the various FileSystem classes. Can consider extract and de-dup them later.
hadoop-ozone/ozonefs-hadoop3/src/main/java/org/apache/hadoop/fs/ozone/OzoneFileSystem.java
Show resolved
Hide resolved
|
Merged. Thanks @ashishkumar50 for fixing the bug and @smengcl for the review. |
Co-authored-by: ashishk <[email protected]>
Co-authored-by: ashishk <[email protected]>
Co-authored-by: ashishk <[email protected]>
What changes were proposed in this pull request?
During leaseRecovery if final block doesn't exist in datanode(when data still not yet flushed to datanode for the last block) but exist in openFileTable. In this case recovery client should finalize the penultimate block and the lease recovery should succeed with the penultimate block length.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10242
How was this patch tested?
New integration test.