Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retry ErrOffsetsLoadInProgress errors during ConsumerGroup join #2058

Closed
jpenning-tibco opened this issue Nov 2, 2021 · 0 comments · Fixed by #2214
Closed

retry ErrOffsetsLoadInProgress errors during ConsumerGroup join #2058

jpenning-tibco opened this issue Nov 2, 2021 · 0 comments · Fixed by #2214

Comments

@jpenning-tibco
Copy link

jpenning-tibco commented Nov 2, 2021

Versions
Sarama Kafka Go
1.29 Kafka-on-Pulsar 2.8.1 1.16.9
Problem Description

The Kafka-on-Pulsar team made a change in 2.8.1 that makes transient ErrOffsetsLoadInProgress errors very common when a consumer joins and causes our sarama consumers to fail. The equivalent error in the Apache Kafka Java client is CoordinatorLoadInProgressException (which extends RetriableException). Because our Kafka Java consumers automatically retry they recover.

I made a naive change to newSession in consumer_group.go, adding ErrOffsetsLoadInProgress to the retry case (without refresh) and our sarama consumers now recover from transient ErrOffsetsLoadInProgress errors.

dnwe added a commit that referenced this issue Apr 14, 2022
Ensures that the consumer group will retry Join and Sync group
operations, if it receives a temporary OffsetsLoadInProgress error
response, in the same way as it would for a RebalanceInProgress.

Fixes #2058
k-wall pushed a commit to k-wall/sarama that referenced this issue May 23, 2022
Ensures that the consumer group will retry Join and Sync group
operations, if it receives a temporary OffsetsLoadInProgress error
response, in the same way as it would for a RebalanceInProgress.

Fixes IBM#2058
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 a pull request may close this issue.

1 participant