Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KAFKA-17395 Flaky test testMissingOffsetNoResetPolicy for new consumer (
apache#17056) In AsyncKafkaConsumer, FindCoordinatorRequest is sent by background thread. In MockClient#prepareResponseFrom, it only matches the response to a future request. If there is some race condition, FindCoordinatorResponse may not match to a FindCoordinatorRequest. It's better to put MockClient#prepareResponseFrom before the request to avoid flaky test. Reviewers: TaiJuWu <[email protected]>, Chia-Ping Tsai <[email protected]>
- Loading branch information