xichen01 commented on code in PR #8707:
URL: https://github.com/apache/ozone/pull/8707#discussion_r2212792927


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/ContainerDataYaml.java:
##########
@@ -71,13 +73,19 @@ private ContainerDataYaml() {
    * Creates a .container file in yaml format.
    */
   public static void createContainerFile(ContainerData containerData, File 
containerFile) throws IOException {
+    if (disableWrite) {

Review Comment:
   This is a precautionary code, in theory, this branch should never be 
reached, the cache file will be generated after other Datanode Servers are 
stop, there should not be any Yaml/Container update operation in this time.



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