Skip to content

Commit

Permalink
Merge pull request confluentinc#5 from racevedoo/apply-oauthbearer-ca…
Browse files Browse the repository at this point in the history
…llback-fix

Trigger op callbacks regardless for unhandled types in consume_batch_queue() et.al.
  • Loading branch information
alexey-milovidov authored Jun 18, 2022
2 parents 81b413c + f5f098d commit 6062e71
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/rdkafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -3838,7 +3838,15 @@ rd_kafka_poll_cb (rd_kafka_t *rk, rd_kafka_q_t *rkq, rd_kafka_op_t *rko,
break;

default:
rd_kafka_assert(rk, !*"cant handle op type");
/* If op has a callback set (e.g., OAUTHBEARER_REFRESH),
* call it. */
if (rko->rko_type & RD_KAFKA_OP_CB) {
res = rd_kafka_op_call(rk, rkq, rko);
break;
}

RD_BUG("Can't handle op type %s (0x%x)",
rd_kafka_op2str(rko->rko_type), rko->rko_type);
break;
}

Expand Down

0 comments on commit 6062e71

Please sign in to comment.