Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions lib/kafka_ex/consumer_group/manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,17 @@ defmodule KafkaEx.ConsumerGroup.Manager do
member_id: member_id,
}

%LeaveGroupResponse{error_code: :no_error} =
leave_group_response =
KafkaEx.leave_group(leave_request, worker_name: worker_name)

Logger.debug(fn -> "Left consumer group #{group_name}" end)
if leave_group_response.error_code == :no_error do
Logger.debug(fn -> "Left consumer group #{group_name}" end)
else
Logger.warn(fn ->
"Received error #{inspect leave_group_response.error_code}, " <>
"consumer group manager will exit regardless."
end)
end

:ok
end
Expand Down