nandakumar131 commented on code in PR #7964:
URL: https://github.com/apache/ozone/pull/7964#discussion_r1971961480
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/AbstractContainerReportHandler.java:
##########
@@ -132,6 +132,13 @@ private void updateContainerStats(final DatanodeDetails
datanodeDetails,
final ContainerInfo containerInfo,
final ContainerReplicaProto replicaProto)
throws ContainerNotFoundException {
+ if (containerInfo.getState() == HddsProtos.LifeCycleState.CLOSED &&
containerInfo.getSequenceId() <
+ replicaProto.getBlockCommitSequenceId()) {
+ logger.error(
+ "There is a CLOSED container with lower sequence ID than a replica.
Container: {}, Container's " +
+ "sequence ID: {}, Replica: {}, Replica's sequence ID: {},
Datanode: {}.", containerInfo,
+ containerInfo.getSequenceId(), replicaProto,
replicaProto.getBlockCommitSequenceId(), datanodeDetails);
Review Comment:
+1 for flattening the output in the log.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]