From 427e8cc5073a5acce08191f38a46cbbc3987ac6d Mon Sep 17 00:00:00 2001 From: Pranav Rathi <4427674+pranavrth@users.noreply.github.com> Date: Wed, 17 Apr 2024 22:55:45 +0530 Subject: [PATCH] [KIP-848] Fix reading error code in CGH_leave due to incorrect parsing of the response. (#4691) --- src/rdkafka_cgrp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rdkafka_cgrp.c b/src/rdkafka_cgrp.c index c0109ad4fc..108ee0b187 100644 --- a/src/rdkafka_cgrp.c +++ b/src/rdkafka_cgrp.c @@ -930,8 +930,7 @@ rd_kafka_cgrp_handle_ConsumerGroupHeartbeat_leave(rd_kafka_t *rk, goto err; } - if (request->rkbuf_reqhdr.ApiVersion >= 1) - rd_kafka_buf_read_throttle_time(rkbuf); + rd_kafka_buf_read_throttle_time(rkbuf); rd_kafka_buf_read_i16(rkbuf, &ErrorCode);