Skip to content

Commit

Permalink
Retry group joins on CoordinatorLoadInProgress error
Browse files Browse the repository at this point in the history
This is a temporary error, so can be safely retried.
  • Loading branch information
dasch committed May 30, 2020
1 parent 99244c1 commit 6579253
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/kafka/consumer_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ def join_group
@member_id = ""
sleep 1

retry
rescue CoordinatorLoadInProgress
@logger.error "Coordinator broker still loading, retrying in 1s..."

sleep 1

retry
end

Expand Down

0 comments on commit 6579253

Please sign in to comment.