Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-9735: fix Recovered WARNINGs in autoscaling/Policy.applyRules()

Christine Poerschkeb3c3f596d924
diff --git a/solr/solrj/src/java/org/apache/solr/cloud/autoscaling/Policy.java b/solr/solrj/src/java/org/apache/solr/cloud/autoscaling/Policy.java
index dd9dfc5c25f..c86ccf98ea1 100644
--- a/solr/solrj/src/java/org/apache/solr/cloud/autoscaling/Policy.java
+++ b/solr/solrj/src/java/org/apache/solr/cloud/autoscaling/Policy.java
@@ -216,7 +216,7 @@ public class Policy implements MapWriter {
p.setApproxVal(tmpMatrix);
}
//approximate values are set now. Let's do recursive sorting
- Collections.sort(matrix, (r1, r2) -> {
+ Collections.sort(matrix, (Row r1, Row r2) -> {
int result = clusterPreferences.get(0).compare(r1, r2, true);
if (result == 0) result = clusterPreferences.get(0).compare(r1, r2, false);
return result;