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

k/group: do not log ignoring raft configuration batches #21410

Merged
merged 1 commit into from
Jul 17, 2024
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: 5 additions & 0 deletions src/v/kafka/server/group_data_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "kafka/server/group_metadata.h"
#include "kafka/server/logger.h"
#include "model/record.h"
#include "model/record_batch_types.h"

template<typename T>
T parse_tx_batch(const model::record_batch& batch, int8_t version) {
Expand Down Expand Up @@ -81,6 +82,10 @@ class group_data_parser {
if (b.header().type == model::record_batch_type::raft_data) {
return handle_raft_data(std::move(b));
}
// silently ignore raft configuration.
if (b.header().type == model::record_batch_type::raft_configuration) {
return ss::now();
}
if (b.header().type == model::record_batch_type::group_prepare_tx) {
auto data = parse_tx_batch<kafka::group_tx::offsets_metadata>(
b, group::prepared_tx_record_version);
Expand Down
Loading