apoorvmittal10 commented on PR #19997:
URL: https://github.com/apache/kafka/pull/19997#issuecomment-2987489495

   > The test testShareFetchRequestSuccessfulSharingBetweenMultipleConsumers 
was recently found to be flaky. Making the following small change that could 
potentially resolve the issue. Earlier, 1000 records were being produced and 
then 3 consecutive share fetch requests were being sent. At the end, assertions 
were done to make sure each share consumer receives some records, and that none 
of them consume the same record. Since the motive for the test is to see if 
multiple consumers can share the same subscription and not consume the same 
record, a better way would be to produce a record, consume that and repeat it 3 
times with the 3 consumers. This ensures that every consumer consume a record, 
and a previously consume record is not consumed again by the subsequent share 
fetches.
   
   @chirag-wadhwa5 but sharing is now happening concurrently now. Isn't that we 
were testing as well in the test?


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to