Skip to content

Commit 7d44375

Browse files
Shawyeoklhotari
authored andcommitted
[improve][broker] Change log level from warn to debug when cursor mark-deleted position ledger doesn't exist (#25200)
(cherry picked from commit 00a65e3)
1 parent 2057fbd commit 7d44375

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2726,7 +2726,8 @@ public CompletableFuture<Void> maybeUpdateCursorBeforeTrimmingConsumedLedger() {
27262726
log.debug("No need to reset cursor: {}, current ledger is the last ledger.", cursor);
27272727
}
27282728
} else {
2729-
log.warn("Cursor: {} does not exist in the managed-ledger.", cursor);
2729+
// It's possible that the ledger at the mark-deleted position is empty and has been deleted already.
2730+
log.debug("Cursor: {} mark-deleted position ledger does not exist in the managed-ledger.", cursor);
27302731
}
27312732

27322733
int compareResult = lastAckedPosition.compareTo(markDeletedPosition);

0 commit comments

Comments
 (0)