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

('Internal inconsistency detected during lambda shape analysis') is the (Recovered) warning.
This commit is contained in:
Christine Poerschke 2017-06-23 11:47:57 +01:00
parent ebfc04b146
commit b3c3f596d9
1 changed files with 1 additions and 1 deletions

View File

@ -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;