priyeshkaratha opened a new pull request, #8822: URL: https://github.com/apache/ozone/pull/8822
## What changes were proposed in this pull request? This pull request introduces a refactoring to improve how proto message creation is handled during upgrades, aiming to ensure compatibility between different versions of OM (Ozone Manager) and SCM (Storage Container Manager). ### Key changes. * Removed List<BlockID> blockIDs from the BlockGroup class * Migrated proto conversion logic to ScmBlockLocationProtocolClientSideTranslatorPB and ScmBlockLocationProtocolServerSideTranslatorPB, where the appropriate proto format is chosen based on the SCM layout version. ### How Compatibility between OM and SCM handled #### Compatibility Matrix | OM Version | SCM Version | Compatibility Handling | |------------|-------------|-------------------------| | **Old OM** | **New SCM** | SCM receives old proto. In `ScmBlockLocationProtocolServerSideTranslatorPB`, it checks if the new block list is empty; if so, it decodes using the old structure. | | **New OM** | **Old SCM** | OM uses `getScmInfo()` to fetch SCM metadata layout version. If the feature is not finalized, OM sends the old structure. | | **New OM** | **New SCM** | Fully upgraded. OM sends size-aware transactions and SCM processes them accordingly. | | **Old OM** | **Old SCM** | Legacy setup. Both components use old proto structure. | ## What is the link to the Apache JIRA HDDS-13461 ## How was this patch tested? Manually verified whether used bytes information is getting properly passed Validated using updated unit test cases and integrated test cases and CI -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
