lhotari opened a new pull request #10572: URL: https://github.com/apache/pulsar/pull/10572
### Motivation BacklogQuotaManagerTest is flaky. ### Modifications - use Awaitility for checking PersistentTopicInternalStats in a few test methods - disable batching in all producers - cleanup test by using the TIME_TO_CHECK_BACKLOG_QUOTA constant - speed up test by reducing TIME_TO_CHECK_BACKLOG_QUOTA from 5 seconds to 3 seconds - fix race condition in testConsumerBacklogEvictionWithAckTimeQuota which was causing flakiness - resolve the race by pausing for 1 second after acknowledging 10 messages for the 1. consumer. This makes the ledgers to expire at different times so that the last ledger with 4 messages will expire later than others. -- 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: us...@infra.apache.org