xichen01 commented on code in PR #10246:
URL: https://github.com/apache/ozone/pull/10246#discussion_r3232044841
##########
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 plan to backport the relevant commits separately later. Since the current
target branch is not a release branch, this won’t cause any issues.
--
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]