Pochatkin commented on code in PR #2121:
URL: https://github.com/apache/ignite-3/pull/2121#discussion_r1218074181
##########
modules/code-deployment/src/main/java/org/apache/ignite/internal/deployunit/DeploymentManagerImpl.java:
##########
@@ -262,8 +262,15 @@ public CompletableFuture<UnitStatuses> statusAsync(String
id) {
}
@Override
- public Path path(String id, Version version) {
- return deployer.unitPath(id, version);
+ public CompletableFuture<Path> path(String id, Version version) {
+ return CompletableFuture.supplyAsync(() -> {
+ Path path = deployer.unitPath(id, version);
+ if (path.toFile().exists()) {
Review Comment:
Files.exists
--
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]