You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "liuliuOD (via GitHub)" <gi...@apache.org> on 2026/09/27 13:37:10 UTC

[PR] MINOR: Optimize PlaintextAdminIntegrationTest record production [kafka]

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

   `PlaintextAdminIntegrationTest` produces records synchronously by calling `send(...).get()` for every record, serializing record production during test setup.
   
   This change sends all records first and waits for all returned futures afterwards, allowing the producer to batch produce requests while ensuring all records are acknowledged before the tests continue.
   
   It also uses distinct topic and Streams group names in the affected tests.
   
   Test time (JUnit XML execution time, excluding Gradle build and compilation):
   
   | Case | Before | After |
   |------|-------:|------:|
   | Total targeted scope (3 tests) | 29.551s | 23.545s |
   
   Test-only change. No production code, public APIs, or test assertions are affected.


-- 
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-unsubscribe@kafka.apache.org

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


Re: [PR] MINOR: Optimize PlaintextAdminIntegrationTest record production [kafka]

Posted by "liuliuOD (via GitHub)" <gi...@apache.org>.
liuliuOD commented on PR #23599:
URL: https://github.com/apache/kafka/pull/23599#issuecomment-5866478880

   Thanks for all the feedback and discussion.
   
   After understanding the current direction of the project, I realized that PlaintextAdminIntegrationTest is being migrated incrementally from Scala to Java. Given that ongoing effort, optimizing the existing Scala test is probably not the best place to invest additional work, even if it provides some performance improvement.
   
   I’ll close this PR and instead look for opportunities to contribute to the Java test migration.
   
   Thanks everyone for the comments and suggestions.


-- 
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-unsubscribe@kafka.apache.org

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


Re: [PR] MINOR: Optimize PlaintextAdminIntegrationTest record production [kafka]

Posted by "andyhuangdev (via GitHub)" <gi...@apache.org>.
andyhuangdev commented on PR #23599:
URL: https://github.com/apache/kafka/pull/23599#issuecomment-5856607090

   LGTM


-- 
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-unsubscribe@kafka.apache.org

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


Re: [PR] MINOR: Optimize PlaintextAdminIntegrationTest record production [kafka]

Posted by "liuliuOD (via GitHub)" <gi...@apache.org>.
liuliuOD closed pull request #23599: MINOR: Optimize PlaintextAdminIntegrationTest record production
URL: https://github.com/apache/kafka/pull/23599


-- 
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-unsubscribe@kafka.apache.org

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