guihecheng commented on a change in pull request #3052: URL: https://github.com/apache/ozone/pull/3052#discussion_r802194143
########## 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: Oh, thanks for the explanation, actually we've seen similar container replicas with no "chunks" directory in our cluster, and I think this patch fixes the problem indeed. LGTM+1 -- 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