Skip to content

Commit

Permalink
Be more defensive when checking for consumer group retry count
Browse files Browse the repository at this point in the history
  • Loading branch information
mjparrott committed Apr 6, 2020
1 parent 65275ab commit 4444c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kafka_ex/consumer_group/manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ defmodule KafkaEx.ConsumerGroup.Manager do
on_successful_join(state, join_response)

{:error, :no_broker} ->
if attempt_number == @max_join_retries do
if attempt_number >= @max_join_retries do
raise "Unable to join consumer group #{state.group_name} after " <>
"#{@max_join_retries} attempts"
end
Expand Down

0 comments on commit 4444c96

Please sign in to comment.