YutaLin commented on code in PR #21235:
URL: https://github.com/apache/kafka/pull/21235#discussion_r2669097522
##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerTest.java:
##########
@@ -2317,15 +2318,17 @@ public void testComplexShareConsumer() throws Exception
{
ClientState prodState = new ClientState();
- // Produce messages until we want.
+ // Produce a fixed number of messages for deterministic testing.
+ int targetRecordCount = 2000;
service.execute(() -> {
try (Producer<byte[], byte[]> producer = createProducer()) {
- while (!prodState.done().get()) {
+ while (prodState.count().get() < targetRecordCount) {
Review Comment:
Hi @AndrewJSchofield, thanks for the review, i've update the logic!
--
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]