Mmuzaf commented on a change in pull request #9186:
URL: https://github.com/apache/ignite/pull/9186#discussion_r787993904
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotRestoreProcess.java
##########
@@ -554,14 +581,16 @@ private void ensureCacheAbsent(String name) {
", caches=" + req.groups() + ']');
}
- SnapshotRestoreContext opCtx0 = prepareContext(req);
+ List<SnapshotMetadata> locMetas =
snpMgr.readSnapshotMetadatas(req.snapshotName());
+
+ SnapshotRestoreContext opCtx0 = prepareContext(req, locMetas);
synchronized (this) {
- opCtx = opCtx0;
+ lastOpCtx = opCtx = opCtx0;
ClusterSnapshotFuture fut0 = fut;
- if (fut0 != null)
+ if (fut0 != null && fut0.interruptEx != null)
Review comment:
Why do we need this change? `null` is also fine here.
--
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]