Skip to content

Commit

Permalink
Fix compilation in RoutingNode
Browse files Browse the repository at this point in the history
This commit fixes compilation in RoutingNode.java after a backport
brought back usage of an API not available in JDK 8.
  • Loading branch information
jasontedor committed Mar 19, 2020
1 parent 279f9bd commit 4934bbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public int numberOfOwningShardsForIndex(final Index index) {
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());
}
}

Expand Down

0 comments on commit 4934bbf

Please sign in to comment.