Skip to content

Commit

Permalink
Ignore temporary files when syncing test cluster distribution (#81482) (
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Dec 8, 2021
1 parent 8ee0e59 commit 1cd2640
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1207,13 +1207,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 1cd2640

Please sign in to comment.