kafka icon indicating copy to clipboard operation
kafka copied to clipboard

KAFKA-19331: Fix misleading log messages when follower's leader is not in metadata image

Open devtrace404 opened this issue 1 month ago • 0 comments

Problem

When a partition transitions to a follower role but its leader broker is not present in the MetadataImage, the broker logs a misleading message stating it "Started fetchers for N partitions" even though no fetcher was actually started for partitions whose leader is unavailable.

Change

Only log "Started fetchers" when partitionAndOffsets is non-empty, avoiding misleading success messages when no fetchers were started.

devtrace404 avatar Dec 11 '25 00:12 devtrace404