slfan1989 opened a new pull request, #10272: URL: https://github.com/apache/ozone/pull/10272
## What changes were proposed in this pull request? This PR fixes the EC pipeline limit calculation in WritableECContainerProvider. `ozone.scm.ec.pipeline.per.volume.factor` is a double configuration, but the previous calculation cast the factor to int before multiplying it by the healthy volume count. As a result, fractional values such as `0.5` were truncated to `0`, causing the volume-based EC pipeline limit to be calculated incorrectly. This PR updates the calculation to apply the factor first and cast only the final result to int. It also adds unit test coverage for fractional factor values. ## What is the link to the Apache JIRA JIRA: HDDS-15280. Fix EC pipeline factor calculation. ## How was this patch tested? Add Junit Test. -- 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]
