Skip to content

KAFKA-9332 change how to get joinGroupTimeoutMs#8741

Closed
sasukerui wants to merge 1 commit intoapache:2.0from
sasukerui:KAFKA-9332
Closed

KAFKA-9332 change how to get joinGroupTimeoutMs#8741
sasukerui wants to merge 1 commit intoapache:2.0from
sasukerui:KAFKA-9332

Conversation

@sasukerui
Copy link
Copy Markdown

rebalanceTimeoutMs + 5000 is always greater than rebalanceTimeoutMs

// maximum time that it may block on the coordinator. We add an extra 5 seconds for small delays.

int joinGroupTimeoutMs = Math.max(rebalanceTimeoutMs, rebalanceTimeoutMs + 5000);
int joinGroupTimeoutMs = rebalanceTimeoutMs + 5000;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous code handles overflow.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the original code was unintentional. We changed it in #8702 to the following:

        int joinGroupTimeoutMs = Math.max(client.defaultRequestTimeoutMs(),
            rebalanceConfig.rebalanceTimeoutMs + JOIN_GROUP_TIMEOUT_LAPSE);

@hachikuji
Copy link
Copy Markdown
Contributor

Thanks for the patch. I'm going to close this since the code was changed separately. I don't think there's a strong reason to port the change back to 2.0, but let us know if there is a specific reason why it's necessary.

@hachikuji hachikuji closed this Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants