Skip to content

Commit

Permalink
Ignore temporary files when syncing test cluster distribution (elasti…
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira authored Dec 8, 2021
1 parent 6652249 commit 9f37097
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1169,13 +1169,17 @@ private void sync(Path sourceRoot, Path destinationRoot, BiConsumer<Path, Path>
throw new UncheckedIOException("Can't create directory " + destination.getParent(), e);
}
} else {
// Ignore these files that are sometimes let behind by the JVM
if (relativeDestination.toFile().getName().startsWith(".attach_pid")) {
return;
}

try {
Files.createDirectories(destination.getParent());
} catch (IOException e) {
throw new UncheckedIOException("Can't create directory " + destination.getParent(), e);
}
syncMethod.accept(destination, source);

}
});
} catch (IOException e) {
Expand Down

0 comments on commit 9f37097

Please sign in to comment.