Skip to content

Commit

Permalink
k/proto: use log-level warn for invalid crc
Browse files Browse the repository at this point in the history
Recently, redpanda-data#11324 changed the log-level from error to warn for a
CRC missmatch. However, on the same event, RP will also log "batch has
invalid CRC" at the error level.

This commit therefore changes the log for "batch has invalid CRC" to
warn level.

Fixes redpanda-data#11361

(cherry picked from commit d4b9b9c)
  • Loading branch information
NyaliaLui authored and vbotbuildovich committed Jun 13, 2023
1 parent 49ad387 commit 433aa33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/kafka/protocol/kafka_batch_adapter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ iobuf kafka_batch_adapter::adapt(iobuf&& kbatch) {

verify_crc(header.crc, std::move(crcparser));
if (unlikely(!valid_crc)) {
vlog(klog.error, "batch has invalid CRC: {}", header);
vlog(klog.warn, "batch has invalid CRC: {}", header);
return remainder;
}

Expand Down

0 comments on commit 433aa33

Please sign in to comment.