rkhachatryan commented on code in PR #20091: URL: https://github.com/apache/flink/pull/20091#discussion_r915560439
########## flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FsCheckpointStorageAccess.java: ########## @@ -113,8 +113,14 @@ public boolean supportsHighlyAvailableStorage() { @Override public void initializeBaseLocationsForCheckpoint() throws IOException { - fileSystem.mkdirs(sharedStateDirectory); - fileSystem.mkdirs(taskOwnedStateDirectory); + if (!fileSystem.mkdirs(sharedStateDirectory)) { Review Comment: I'm wondering whether this check is sufficient. `mkdirs` javadoc says: `@return true if at least one new directory has been created, false otherwise` "at least one" confuses me; but probably an additional check here would be an overkill because it's only an optimization. WDYT? -- 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...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org