Skip to content

Commit

Permalink
HDDS-9947. Change log level of NotLeaderException to info
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaskriya committed Dec 18, 2023
1 parent 4ca41a1 commit 7dc5d8d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.apache.hadoop.hdds.server.events.EventHandler;
import org.apache.hadoop.hdds.server.events.EventPublisher;
import org.apache.hadoop.ozone.common.statemachine.InvalidStateTransitionException;
import org.apache.ratis.protocol.exceptions.NotLeaderException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -116,6 +117,9 @@ public void onMessage(final IncrementalContainerReportFromDatanode report,
LOG.error("Exception while processing ICR for container {}",
replicaProto.getContainerID(), ex);
}
} catch (NotLeaderException ex) {
LOG.info("Exception while processing ICR for container {}",
replicaProto.getContainerID(), ex);
} catch (IOException | InvalidStateTransitionException |
TimeoutException e) {
LOG.error("Exception while processing ICR for container {}",
Expand Down

0 comments on commit 7dc5d8d

Please sign in to comment.