Skip to content

Conversation

@ChenSammi
Copy link
Contributor

What changes were proposed in this pull request?

Update block length at OM per block when hsync is called.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-9387

How was this patch tested?

new unit tests

} else {
omClient.hsyncKey(keyArgs, openID);
if (keyArgs.getLocationInfoList().size() == 0) {
omClient.hsyncKey(keyArgs, openID);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to hsync without any block info? Or can we return error in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hsync is called right after file is created. See TestHSync#testUncommittedBlocks.

@jojochuang jojochuang added the hbase HBase on Ozone support label Jan 23, 2024
@ChenSammi ChenSammi changed the title HDDS-9387. [hsync] Skip updating block length at OM during hsync HDDS-9387. [hsync] Reduce updating block length times at OM during hsync Jan 25, 2024
@jojochuang jojochuang merged commit 54a75ca into apache:HDDS-7593 Jan 25, 2024
@jojochuang
Copy link
Contributor

Thanks Sammi and Ashish!

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.

3 participants