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 13, 2025
1 parent 800aede commit ca509ec
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2994,10 +2994,8 @@ protected void markFailed(Throwable t) /* @MD19484C */
private void markFailed(Throwable t, boolean report, boolean peerServerLostLogOwnership) {
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 ca509ec

Please sign in to comment.