Skip to content

Commit

Permalink
logs: Add partition to warning upon log Truncation (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehud-Lev-Forter committed Dec 5, 2022
1 parent 540b0b9 commit f7fceaf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,11 @@ private void maybeTruncateBelowOrAbove(long bootstrapPolledOffset) {

if (pollAboveExpected) {
// previously committed offset record has been removed from the topic, so we need to truncate up to it
log.warn("Truncating state - removing records lower than {}. Offsets have been removed from the partition " +
log.warn("Truncating state - removing records lower than {} from partition {}. Offsets have been removed from the partition " +
"by the broker or committed offset has been raised. Bootstrap polled {} but expected {} from loaded commit data. " +
"Could be caused by record retention or compaction and offset reset policy LATEST.",
bootstrapPolledOffset,
this.tp.partition(),
bootstrapPolledOffset,
expectedBootstrapRecordOffset);

Expand Down

0 comments on commit f7fceaf

Please sign in to comment.