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

   ## What changes were proposed in this pull request?
   
   Fix intermittent test failure:
   
   ```
   AssertionFailedError: expected: <true> but was: <false>
     ...
     at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183)
     at 
org.apache.hadoop.ozone.container.common.statemachine.commandhandler.TestCloseContainerCommandHandler.testThreadPoolPoolSize(TestCloseContainerCommandHandler.java:316)
   ```
   
   This started happening with Ubuntu 24.04 runner 
([example](https://github.com/apache/ozone/actions/runs/13259625320/job/37013543693?pr=7852#step:6:1621)).
   
   Fixed by removing the part of the test related to `activePoolSize`.
   
   - commands may be already handled by the time when the assertion is reached
   - return value from `ThreadPoolExecutor#getActiveCount()` is approximate, 
anyway
   - the value is only used for metrics
   
   https://issues.apache.org/jira/browse/HDDS-12309
   
   ## How was this patch tested?
   
   10x10 run:
   https://github.com/adoroszlai/ozone/actions/runs/13262417511
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/13260576575
   


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