gaurav-narula opened a new pull request, #15962:
URL: https://github.com/apache/kafka/pull/15962

   `TopicBasedRemoteLogMetadataManagerMultipleSubscriptionsTest` has a race 
when it sets `RemoteLogMetadataTopicPartitioner` using the setter.
   
   This change fixes the race condition by passing the 
`RemoteLogMetadataTopicPartitioner` instance in a `Function<Integer, 
RemoteLogMetaedataTopicPartitioner>` which is used in `configure()` in 
`TopicBasedRemoteLogMetadataManager`.
   
   It also improves the waitingFor condition by spying on 
`RemotePartitionMetadataStore` and awaiting on Phasers to ensure 
ConsumerManager makes progress before performing assertions.
   
   ### 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to