devmadhuu opened a new pull request, #11988: URL: https://github.com/apache/ozone/pull/11988
## What changes were proposed in this pull request? Storage type is already recorded in container metadata, but the shared request/database serializer also persists it in every block record. This duplicates container-level information and can leave stale per-block values after container placement changes. This PR separates database serialization from request serialization: - Omits `storageTypeID` from newly persisted block and `lastChunkInfoTable` records. - Retains it on client requests for container placement and storage-type validation. - Derives `GetBlock`, `ListBlock` and `FinalizeBlock` response types from the owning container’s metadata. - Preserves reads of existing records with or without the optional field, without requiring a database migration. ## What is the link to the Apache JIRA Added tests covering raw persisted values, historical records, database reopen, incremental chunk updates, finalization, request-field preservation and container-derived responses. Updated existing persistence, dispatcher and storage-policy integration assertions for the new persistence contract. ## How was this patch tested? - 8 `TestOzoneStoragePolicy` integration tests passed. -- 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]
