Skip to content

Commit a506abd

Browse files
authored
Merge pull request #456 from hoteltonight/jm-handle-replaced-coordinator
Handle the case where the coordinator is replaced with a new host
2 parents 8943d05 + e5eb76f commit a506abd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/kafka/consumer_group.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def join
4848
rescue ConnectionError
4949
@logger.error "Connection error while trying to join group `#{@group_id}`; retrying..."
5050
sleep 1
51+
@cluster.mark_as_stale!
5152
@coordinator = nil
5253
retry
5354
end

0 commit comments

Comments
 (0)