Skip to content

Commit

Permalink
Closes #4059
Browse files Browse the repository at this point in the history
  • Loading branch information
emasab committed Nov 20, 2024
1 parent c676650 commit 5701bb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rdkafka_cgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3793,7 +3793,12 @@ static void rd_kafka_cgrp_op_handle_OffsetCommit(rd_kafka_t *rk,
break;

case RD_KAFKA_RESP_ERR_ILLEGAL_GENERATION:
/* Revoke assignment and rebalance on illegal generation */
/* Revoke assignment and rebalance on illegal generation,
* only if not rebalancing, because a new generation id
* can be received soon after this error. */
if (RD_KAFKA_CGRP_REBALANCING(rkcg))
break;

rk->rk_cgrp->rkcg_generation_id = -1;
rd_kafka_cgrp_revoke_all_rejoin_maybe(
rkcg, rd_true /*assignment is lost*/,
Expand Down

0 comments on commit 5701bb8

Please sign in to comment.