Skip to content

Conversation

@ashishkumar50
Copy link
Contributor

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.

@ashishkumar50 ashishkumar50 changed the title HDDS-10242. Handle penultimate block finalization. HDDS-10242. [hsync] Handle penultimate block finalization. Feb 5, 2024
@ashishkumar50
Copy link
Contributor Author

@ChenSammi @jojochuang Please help to review, thanks.

@jojochuang jojochuang added the hbase HBase on Ozone support label Feb 8, 2024
@jojochuang
Copy link
Contributor

This PR needs a rebase. Sorry.

@ashishkumar50 ashishkumar50 reopened this Feb 8, 2024
Copy link
Contributor

@jojochuang jojochuang left a 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.

@jojochuang jojochuang merged commit 0a1c5d4 into apache:HDDS-7593 Feb 10, 2024
@jojochuang
Copy link
Contributor

Merged. Thanks @ashishkumar50 for fixing the bug and @smengcl for the review.

smengcl pushed a commit to smengcl/hadoop-ozone that referenced this pull request Mar 6, 2024
chungen0126 pushed a commit to chungen0126/ozone that referenced this pull request May 3, 2024
chungen0126 pushed a commit to chungen0126/ozone that referenced this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hbase HBase on Ozone support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants