Mmuzaf commented on code in PR #10082:
URL: https://github.com/apache/ignite/pull/10082#discussion_r898246447


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java:
##########
@@ -2864,14 +2859,15 @@ else if (msg instanceof SnapshotFilesFailureMessage) {
             try {
                 task.partsLeft.compareAndSet(-1, partsCnt);
 
-                File cacheDir = U.resolveWorkDirectory(task.dir.toString(),
-                    Paths.get(rmtDbNodePath, cacheDirName).toString(),
-                    false);
+                File cacheDir = new File(storeMgr.workDir(), cacheDirName);
+
+                File tmpCacheDir = 
U.resolveWorkDirectory(storeMgr.workDir().getAbsolutePath(),
+                    formatTmpDirName(cacheDir).getName(), false);
 
-                return Paths.get(cacheDir.getAbsolutePath(), 
getPartitionFileName(partId)).toString();
+                return Paths.get(tmpCacheDir.getAbsolutePath(), 
getPartitionFileName(partId)).toString();
             }
             catch (IgniteCheckedException e) {
-                throw new IgniteException(e);
+                throw new RuntimeException(e);

Review Comment:
   Is there any reason for this change?



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

Reply via email to