Atharv3221 opened a new pull request, #24137:
URL: https://github.com/apache/kafka/pull/24137

   The three `KafkaProducerTest` metadata tests bypassed `MockClient` when 
updating metadata,
   so `MockClient` threw `No previous metadata update to use` in a tight loop. 
They also used
   busy-waiting, `Time.SYSTEM` and `Thread.sleep`.
   
   Changes:
   - Seed and queue metadata through `MockClient`, so it always has an update 
to replay
   - Use `MockTime` and advance it from a `MockClient` wakeup hook instead of 
real time
   - `testTopicRefreshInMetadata`: remove the helper thread and busy-wait loop
   - `testTopicExpiryInMetadata`: replace `Thread.sleep` and check the expired 
topic is dropped
   
   All `sleep` calls are on `MockTime` . Test-only change.


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