Mmuzaf commented on a change in pull request #7792:
URL: https://github.com/apache/ignite/pull/7792#discussion_r429627331
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java
##########
@@ -419,6 +421,12 @@ public static void deleteSnapshot(File snpDir, String
folderName) {
}
});
+ File binMetadataDfltDir = new File(snpDir,
DFLT_BINARY_METADATA_PATH);
+ File marshallerDfltDir = new File(snpDir, DFLT_MARSHALLER_PATH);
+
+ U.delete(binMetadataDfltDir);
+ U.delete(marshallerDfltDir);
Review comment:
It's not correct in doing such a way since the marshaller directory is
shared between all nodes (if nodes are started on the local machine). Thus you
will give the `NoSuchFileException` due to `U.delete` doesn't work with
directories in concurrent-way.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]