Skip to content

Commit 2f01d17

Browse files
authored
Fix thread leak in ManyShardsIT (#128321)
1 parent 7c39f26 commit 2f01d17

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)