File tree 1 file changed +4
-0
lines changed
buildSrc/src/main/java/org/elasticsearch/gradle/testclusters
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 23
23
import org .elasticsearch .gradle .FileSupplier ;
24
24
import org .elasticsearch .gradle .OS ;
25
25
import org .elasticsearch .gradle .Version ;
26
+ import org .gradle .api .file .DuplicatesStrategy ;
26
27
import org .gradle .api .logging .Logger ;
27
28
import org .gradle .api .logging .Logging ;
28
29
@@ -361,6 +362,9 @@ private void copyExtraConfigFiles() {
361
362
private void installModules () {
362
363
if (distribution == Distribution .INTEG_TEST ) {
363
364
modules .forEach (module -> services .copy (spec -> {
365
+ // ensure we don't override any existing JARs, since these are hardlinks other clusters might be using those files
366
+ spec .setDuplicatesStrategy (DuplicatesStrategy .EXCLUDE );
367
+
364
368
if (module .getName ().toLowerCase ().endsWith (".zip" )) {
365
369
spec .from (services .zipTree (module ));
366
370
} else if (module .isDirectory ()) {
You can’t perform that action at this time.
0 commit comments