lianetm opened a new pull request, #18416: URL: https://github.com/apache/kafka/pull/18416
Fix for flaky unit test. The test used to fail when asserting the queue size metric after adding an event, because of a race condition (the background thread could have set the metric back to 0 when processing all events). Fix logic to ensure we always record the incremented queue size. Also fix the test to just verify that the update happened, instead of checking the metric end value. Test passes consistently with this fix (locally) -- 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]
