[ 
https://issues.apache.org/jira/browse/SOLR-12648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16636826#comment-16636826
 ] 

ASF subversion and git services commented on SOLR-12648:
--------------------------------------------------------

Commit c576a9bca03c46110923c2b6c2ea3b4385634b7f in lucene-solr's branch 
refs/heads/branch_7x from [~shalinmangar]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c576a9b ]

SOLR-12648: Use the information whether custom preferences were specified in 
the CloudUtil.usePolicyFramework method instead of comparing directly against 
default preferences. Comparing against default preferences was wrong because it 
ignores the case where the user explicitly added the same preferences as the 
default ones.


> Autoscaling framework based replica placement is not used unless a policy is 
> specified or non-empty cluster policy exists
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-12648
>                 URL: https://issues.apache.org/jira/browse/SOLR-12648
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: AutoScaling, SolrCloud
>    Affects Versions: 7.4
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Major
>             Fix For: 7.6, master (8.0)
>
>         Attachments: SOLR-12648.patch, SOLR-12648.patch, SOLR-12648.patch, 
> SOLR-12648.patch
>
>
> Assign.java has a piece of code to decide which placement framework to use 
> (we have three today):
> {code}
> if (rulesMap == null && policyName == null && 
> autoScalingConfig.getPolicy().getClusterPolicy().isEmpty())
> {code}
> Note that the presence of cluster preferences is not a criteria. So even if a 
> user adds cluster preferences, they will not be respected unless a policy 
> also exists.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to