Skip to content

Commit 44a7553

Browse files
authored
Fix thread leak in ManyShardsIT (elastic#128321) (elastic#128347)
(cherry picked from commit 2f01d17)
1 parent ae2c5cf commit 44a7553

File tree

1 file changed

+1
-1
lines changed
  • server/src/main/java/org/elasticsearch/common/util/iterable

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/common/util/iterable/Iterables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ public static <T> int indexOf(Iterable<T> iterable, Predicate<T> predicate) {
7979
}
8080

8181
public static long size(Iterable<?> iterable) {
82-
return StreamSupport.stream(iterable.spliterator(), true).count();
82+
return StreamSupport.stream(iterable.spliterator(), false).count();
8383
}
8484
}

0 commit comments

Comments
 (0)