guihecheng commented on a change in pull request #3052: URL: https://github.com/apache/ozone/pull/3052#discussion_r801277910
########## File path: hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/helpers/KeyValueContainerUtil.java ########## @@ -254,6 +255,13 @@ public static void parseKVContainerData(KeyValueContainerData kvContainerData, if (!isBlockMetadataSet) { initializeUsedBytesAndBlockCount(store, kvContainerData); } + + // If the container is missing a chunks directory, possibly due to the + // bug fixed by HDDS-6235, create it here. + File chunksDir = new File(kvContainerData.getChunksPath()); + if (!chunksDir.exists()) { Review comment: Hi ethan, as I read, the chunks directory should be created in the TarContainerPacker while unpacking, then is there a case that we have to create this directory again in parseKVContainerData? -- 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: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org