F64116045 opened a new pull request, #11539:
URL: https://github.com/apache/ozone/pull/11539

   ## What changes were proposed in this pull request?
   
   After deleting the key, `testContainerStateAfterDNRestart` currently:
   
   1. Sleeps for 10 seconds.
   2. Checks every 100 ms for up to another 10 seconds until all container
      replicas are empty.
   
   
   Instead of waiting unconditionally for 10 seconds before checking the 
result, this PR starts polling immediately. 
   Also increase the timeout from 10 to 20 seconds to keep the same maximum 
wait, while allowing the test to continue as soon as all replicas are empty.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17007
   
   ## How was this patch tested?
   
   Ran `testContainerStateAfterDNRestart` 10 times locally before and after the 
change.
   
   | Version | Average | Median | Range |
   | --- | ---: | ---: | ---: |
   | Before | 50.02 s | 50.16 s | 48.49–51.31 s |
   | After | 38.41 s | 37.93 s | 35.89–45.71 s |
   
   
   Run times
   
   ```text
   Before: 48.49, 49.47, 50.62, 51.31, 50.26, 48.80, 50.06, 49.26, 51.01, 50.97
   After:  38.09, 37.50, 37.06, 37.03, 38.51, 38.27, 37.77, 45.71, 35.89, 38.28
   ```
   
   CI: 


-- 
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]

Reply via email to