ivandika3 commented on code in PR #10246:
URL: https://github.com/apache/ozone/pull/10246#discussion_r3232077899
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/helpers/ContainerUtils.java:
##########
@@ -246,11 +247,15 @@ public static void
verifyContainerFileChecksum(ContainerData containerData,
HDDS_CONTAINER_CHECKSUM_VERIFICATION_ENABLED_DEFAULT);
if (enabled) {
String storedChecksum = containerData.getContainerFileChecksum();
+ StorageType storageType =
+ containerData instanceof KeyValueContainerData
+ ? containerData.getStorageType() : null;
Yaml yaml = ContainerDataYaml.getYamlForContainerType(
containerData.getContainerType(),
- containerData instanceof KeyValueContainerData &&
- ((KeyValueContainerData)containerData).getReplicaIndex() > 0);
+ containerData instanceof KeyValueContainerData
+ && ((KeyValueContainerData) containerData).getReplicaIndex() > 0,
+ storageType);
Review Comment:
I prefer if we don't add a revert commit if unnecessary, but I'm OK to leave
it be.
--
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]