ptlrs commented on code in PR #7934:
URL: https://github.com/apache/ozone/pull/7934#discussion_r2019093426


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/TarContainerPacker.java:
##########
@@ -108,6 +121,20 @@ public byte[] 
unpackContainerData(Container<KeyValueContainerData> container,
     return descriptorFileContent;
   }
 
+  private void persistCustomContainerState(Container<KeyValueContainerData> 
container, byte[] descriptorContent,
+      ContainerProtos.ContainerDataProto.State state, Path 
containerMetadataPath) throws IOException {
+    if (descriptorContent == null) {
+      LOG.warn("Skipping persisting of custom state. Container descriptor is 
null for container {}",
+          container.getContainerData().getContainerID());
+      return;
+    }
+
+    KeyValueContainerData originalContainerData =
+        (KeyValueContainerData) 
ContainerDataYaml.readContainer(descriptorContent);

Review Comment:
   Fixed



-- 
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]

Reply via email to