lhotari commented on pull request #9393: URL: https://github.com/apache/pulsar/pull/9393#issuecomment-775735510
> Let me know if you found anything regarding this issue. My most recent commit should definitely add some stability to the `LinuxBrokerHostUsageImpl` by not calling it at nearly the same time. @michaeljmarshall yes, you are right about the race condition. Good catch. It's the `calculateBrokerHostUsage` call that is scheduled and the `calculateBrokerHostUsage` call in the constructor that cause the issue. Besides the race, it also seems that this is a clear bug in the `calculateBrokerHostUsage` method itself. I'm now running the test loop (to see if it fails at some point) with these changes: https://github.com/apache/pulsar/commit/468550f471e3e1b4e5071fa9e5fac2f69713a398 I have a few commits in my fork where I experimented with various improvements: https://github.com/apache/pulsar/compare/master...lhotari:issue-6368-flaky-test -Lari ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
