[ 
https://issues.apache.org/jira/browse/KAFKA-21227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai resolved KAFKA-21227.
------------------------------------
    Fix Version/s: 4.5.0
       Resolution: Fixed

> Speed up ColdStartStickinessIntegrationTest
> -------------------------------------------
>
>                 Key: KAFKA-21227
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21227
>             Project: Kafka
>          Issue Type: Test
>          Components: streams, unit tests
>            Reporter: 이선민
>            Assignee: 이선민
>            Priority: Minor
>             Fix For: 4.5.0
>
>
> The classic protocol case of ColdStartStickinessIntegrationTest takes about
> 73 seconds locally, while the streams protocol case takes about 23 seconds.
> After the first phase, the test closes both instances and waits for the
> consumer group to become empty before the cold restart. With the classic
> protocol, the stream threads do not leave the group on close, so the group
> only becomes empty after both members' sessions time out (45s). The broker
> logs show the members removed on heartbeat expiration about 44 seconds
> after the close, and the restart begins right after that.
> The streams protocol case is not affected, because dynamic members leave
> the group on close by default.
> We can set a shorter session timeout and heartbeat interval for the classic
> protocol case, so the members expire shortly after the close. Leaving the
> group on close does not work here, because the first instance's LeaveGroup
> triggers a rebalance that can assign its tasks to the second instance
> before it closes. Locally, a 6 second session timeout reduces the classic
> case to about 34 seconds.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to