Skip to content

Commit

Permalink
fix: trace only first recovery log failure
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-chacko committed Jan 9, 2025
1 parent 5f5c6b5 commit 3a7f59c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3174,10 +3174,8 @@ private void markFailed(Throwable t, boolean report, boolean peerServerLostLogOw

boolean newFailure = false;
synchronized (this) {
if (tc.isDebugEnabled() && _failed)
Tr.debug(tc, "markFailed: RecoveryLog has been marked as failed. [" + this + "]");

if (!_failed) {
if (tc.isDebugEnabled()) Tr.debug(tc, "markFailed: RecoveryLog has been marked as failed. [" + this + "]");
newFailure = true;
_failed = true;
}
Expand Down

0 comments on commit 3a7f59c

Please sign in to comment.