showuon opened a new pull request #9029:
URL: https://github.com/apache/kafka/pull/9029


   In the original test, we will sleep for static 5 seconds to ensure the 
automated group offset sync is complete. It sometimes synced fast (less than 1 
sec), and sometimes slow (~ 20 seconds). I rewrite the sleep to wait for 
specific condition:  
   1. `consumer.endOffsets` to make sure the topic partition metadata is synced
   2. `backupClient.listConsumerGroupOffsets` to make sure the 
consumerGroupOffset is also synced
   
   I've tested in my local environment a lot of times. It can make the test 
more stable.
   
   Thanks.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


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


Reply via email to