Gargi-jais11 opened a new pull request, #10019: URL: https://github.com/apache/ozone/pull/10019
## What changes were proposed in this pull request? Speed up TestFailoverWithSCMHA#testRetryMessageShownWhenScmUnavailable, which currently takes 3 minutes. Current situation: ``` Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 254.8 s -- in org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA.testRetryMessageShownWhenScmUnavailable -- Time elapsed: 188.5 s org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA.testFailover -- Time elapsed: 33.65 s org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA.testContainerBalancerPersistsConfigurationInAllSCMs -- Time elapsed: 32.63 s ``` Fix: Reduced failover attempt count from `599 failover attempts` to `3 failover attempts` . It takes **111.1s** to run the test now. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-14941 ## How was this patch tested? Checked in the CI run for test. **Before Fix:** ``` org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 259.7 s ``` **After Fix:** ``` org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 111.1 s org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA.testRetryMessageShownWhenScmUnavailable -- Time elapsed: 38.5 s org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA.testFailover -- Time elapsed: 34.5 s org.apache.hadoop.hdds.scm.TestFailoverWithSCMHA.testContainerBalancerPersistsConfigurationInAllSCMs -- Time elapsed: 35.63 s ``` -- 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]
