Fix compilation in RoutingNode

This commit fixes compilation in RoutingNode.java after a backport
brought back usage of an API not available in JDK 8.
This commit is contained in:
Jason Tedor 2020-03-18 22:21:11 -04:00
parent b649b0d273
commit bc5dae2713
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ public class RoutingNode implements Iterable<ShardRouting> {
if (shardRoutings == null) {
return 0;
} else {
return Math.toIntExact(shardRoutings.stream().filter(Predicate.not(ShardRouting::relocating)).count());
return Math.toIntExact(shardRoutings.stream().filter(sr -> sr.relocating() == false).count());
}
}