Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.2.x] kafka: Don't set rack ID if empty #15861

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/v/kafka/server/handlers/fetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,10 @@ class simple_fetch_planner final : public fetch_planner::impl {
.strict_max_bytes = octx.response_size > 0,
.skip_read = bytes_left_in_plan == 0 && max_bytes == 0,
.read_from_follower = octx.request.has_rack_id(),
.consumer_rack_id = octx.request.data.rack_id,
.consumer_rack_id = octx.request.has_rack_id()
? std::make_optional(
octx.request.data.rack_id)
: std::nullopt,
.abort_source = octx.rctx.abort_source(),
.client_address = model::client_address_t{client_address},
};
Expand Down
Loading