[
https://issues.apache.org/jira/browse/SOLR-12592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16569292#comment-16569292
]
Varun Thacker commented on SOLR-12592:
--------------------------------------
Looks like this commit might have caused some compilation issues? Weirdly
precommit failed once but succeeded the next time. IntelliJ complains when I
run other tests
The error is coming from {{Clause.java}}
{code:java}
public SealedClause getSealedClause(Function<Condition, Object>
computedValueEvaluator) {
return this instanceof SealedClause ?
(SealedClause) this :
new SealedClause(this, computedValueEvaluator);
}{code}
{code:java}
Error:(250, 32) java: incompatible types:
java.util.function.Function<org.apache.solr.client.solrj.cloud.autoscaling.Condition,java.lang.Object>
cannot be converted to
java.util.function.Function<org.apache.solr.client.solrj.cloud.autoscaling.Clause.Condition,java.lang.Object>{code}
> Support cores:'EQUAL' %age , range in autoscaling policies
> -----------------------------------------------------------
>
> Key: SOLR-12592
> URL: https://issues.apache.org/jira/browse/SOLR-12592
> Project: Solr
> Issue Type: New Feature
> Security Level: Public(Default Security Level. Issues are Public)
> Components: AutoScaling, SolrCloud
> Reporter: Noble Paul
> Assignee: Noble Paul
> Priority: Major
>
> It's possible to sort nodes according to cores and the system can normally
> prefer nodes with fewer cores when placing new replicas. However, it may not
> give suggestions to move off replicas , if the system is already in an
> unbalanced state.
> The following rule may help achieve such a balanced distribution of cores
> {code}
> {"cores":"#EQUAL" , node: "#ANY"}
> {code}
> The value of cores is computed as {{total_cores/total_nodes}}. for e.g: if
> there are 28 cores in total and there are 5 nodes . the value of cores= 28/5
> = 5.6. This means a node may have either 5 cores or 6 cores.
> It's possible that this may cause a conflict with other collection-specific
> rules such as
> {code}
> {"replica":"#EQUAL" , "node" : "#ANY"}
> {code}
> It can be remedied by making this rule , not strict.
> {code}
> {"cores":"#EQUAL" , "node": "#ANY", "strict"=false}
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]