Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Do not log useless Error deleting cursor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiming Zang committed Jun 25, 2023
1 parent a6eb7a6 commit ed1ad01
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ public void deleteCursorComplete(Object ctx) {

@Override
public void deleteCursorFailed(ManagedLedgerException exception, Object ctx) {
if (exception instanceof ManagedLedgerException.CursorNotFoundException) {
log.debug("[{}] Cursor already deleted {} for topic {} for reason: {} - {}.",
requestHandler.ctx.channel(), cursor.getName(), topic.getName(), reason,
String.valueOf(exception));
}
log.warn("[{}] Error deleting cursor {} for topic {} for reason: {}.",
requestHandler.ctx.channel(), cursor.getName(), topic.getName(), reason, exception);
}
Expand Down

0 comments on commit ed1ad01

Please sign in to comment.