mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
Fix thread leak in ManyShardsIT (#128321)
This commit is contained in:
parent
7c39f26f3d
commit
2f01d1715c
1 changed files with 1 additions and 1 deletions
|
@ -79,6 +79,6 @@ public class Iterables {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static long size(Iterable<?> iterable) {
|
public static long size(Iterable<?> iterable) {
|
||||||
return StreamSupport.stream(iterable.spliterator(), true).count();
|
return StreamSupport.stream(iterable.spliterator(), false).count();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue