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

   The default policy of closing streams does not leave the group, causing each 
roll to wait for the session timeout 
([45s](https://github.com/apache/kafka/blob/da078363444635eebe52cefc5a2c1baf11b8fbce/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java#L467)).
 Closing instances with `CloseOptions.groupMembershipOperation(LEAVE_GROUP)` 
instead explicitly removes them from the group, reducing test runtime from 
~180s to ~9.7s.
   
   
   
   **Before:**
   ```xml
   <testcase name="testVersionProbingUpgrade()" 
classname="org.apache.kafka.streams.integration.StreamsUpgradeTestIntegrationTest"
 time="180.171"/>
   ```
   
   **After:**
   ```xml
   <testcase name="testVersionProbingUpgrade()" 
classname="org.apache.kafka.streams.integration.StreamsUpgradeTestIntegrationTest"
 time="9.769"/>
   ```
   
   


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