Skip to content

Commit

Permalink
ListOffsetsRequest should only be sent to the leader replica
Browse files Browse the repository at this point in the history
  • Loading branch information
kphelps committed Feb 12, 2024
1 parent 6d88efd commit dfb9e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rdkafka_partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ void rd_kafka_toppar_offset_request(rd_kafka_toppar_t *rktp,
rd_kafka_assert(NULL,
thrd_is_current(rktp->rktp_rkt->rkt_rk->rk_thread));

rkb = rktp->rktp_broker;
rkb = rktp->rktp_leader;

if (!backoff_ms && (!rkb || rkb->rkb_source == RD_KAFKA_INTERNAL))
backoff_ms = 500;
Expand Down

0 comments on commit dfb9e3e

Please sign in to comment.