devmadhuu opened a new pull request, #5926: URL: https://github.com/apache/ozone/pull/5926
## What changes were proposed in this pull request? This PR fixes intermittent failure in `TestSecureOzoneRpcClient.testValidateBlockLengthWithCommitKey` test case. This test case validates the committed block length for committed key on OM side, but this test case generates the key content randomly using `RandomStringUtils.random(RandomUtils.nextInt(0, 1024))` and this caused the intermittent failure as sometimes seed value of 0 being used to generate key content due to which empty block gets written in key. This PR fixed the issue by changing the range (1, 1024) so that empty key block never gets committed. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-9758 ## How was this patch tested? This patch is tested by running repeated CI runs of multiple iterations (100 iterations in CI flaky workflow). Here is the green CI [link](https://github.com/devmadhuu/ozone/actions/runs/7408849132). -- 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]
