anuragp010 opened a new pull request, #12179: URL: https://github.com/apache/ozone/pull/12179
## What changes were proposed in this pull request? Earlier, EC keys did not honour storage policy: SCM reused open EC pipelines and containers of any storage tier, and the client sent no storage type, so datanodes placed EC replicas on their default storage type. This PR adds support for EC keys to honour the storage policy on the write path. `WritableECContainerProvider` counts and reuses only the open EC pipelines of the requested tier, and reuses a container only if its tier matches the requested tier. `ECBlockOutputStreamEntryPool` sets the block's storage type on each entry, which `ECBlockOutputStream` then sends in the `WriteChunk` and `PutBlock` calls. EC reconstruction support for storage policy is the scope of a follow-up JIRA. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-16678 ## How was this patch tested? 1. Unit Tests and Integration Tests -- 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]
