Skip to content

HDDS-5477 : EC: commit key should consolidate and create one keyLocationInfo per blockGrp#2648

Merged
sodonnel merged 4 commits intoapache:HDDS-3816-ecfrom
umamaheswararao:HDDS-5477
Sep 16, 2021
Merged

HDDS-5477 : EC: commit key should consolidate and create one keyLocationInfo per blockGrp#2648
sodonnel merged 4 commits intoapache:HDDS-3816-ecfrom
umamaheswararao:HDDS-5477

Conversation

@umamaheswararao
Copy link
Contributor

What changes were proposed in this pull request?

Consolidates the block stream information per the block group.

What is the link to the Apache JIRA

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

How was this patch tested?

To check current tests impact.

Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

+1 from me. However I would really like us to add tests for this specific area. I know there is a plan to refactor the ECBlockOutputStream classes and at that time I think we should ensure we have some tests for this, as the data written to OM is so important.

@umamaheswararao
Copy link
Contributor Author

@sodonnel Thanks for the review. I have added a test to validate commitKey info. I figured out that client was not sending in sorted order. Anyway while reading you would do that based on index order. However I have just did simple sort to send them in correct order.

@sodonnel
Copy link
Contributor

Thanks for adding the tests etc. This change LGTM and has passed all checks so I will go ahead and commit it.

@sodonnel sodonnel merged commit 1d3423d into apache:HDDS-3816-ec Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants