Skip to content

Commit

Permalink
kafka: Disable FF if rack awareness is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Boquard <michael@redpanda.com>
(cherry picked from commit b7b314f)
  • Loading branch information
michael-redpanda authored and vbotbuildovich committed Jan 2, 2024
1 parent c435103 commit e89f8c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/v/kafka/server/handlers/fetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ static ss::future<read_result> do_read_from_ntp(
kafka_partition->start_offset(),
kafka_partition->high_watermark());
}
if (ntp_config.cfg.consumer_rack_id && kafka_partition->is_leader()) {
if (
config::shard_local_cfg().enable_rack_awareness.value()
&& ntp_config.cfg.consumer_rack_id && kafka_partition->is_leader()) {
auto p_info_res = kafka_partition->get_partition_info();
if (p_info_res.has_error()) {
// TODO: add mapping here
Expand Down

0 comments on commit e89f8c6

Please sign in to comment.