ArafatKhan2198 commented on code in PR #6500:
URL: https://github.com/apache/ozone/pull/6500#discussion_r1567092030
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainerMetadataInspector.java:
##########
@@ -408,18 +414,19 @@ private boolean checkAndRepair(JsonObject parent,
return repaired;
};
- JsonObject usedBytesError = buildErrorAndRepair("dBMetadata." +
- OzoneConsts.CONTAINER_BYTES_USED, usedBytesAggregate,
usedBytesDB,
- keyRepairAction);
- errors.add(usedBytesError);
+ ObjectNode usedBytesError =
+ buildErrorAndRepair("dBMetadata." + OzoneConsts.CONTAINER_BYTES_USED,
+ usedBytesAggregate,
+ usedBytesDB, keyRepairAction);
+ ((ArrayNode) errors).add(usedBytesError);
Review Comment:
Thanks I got confused with something else on the casting, I have removed
them thanks!
--
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]