[jira] [Commented] (SOLR-12444) Updating a cluster policy fails

2018-06-05 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on SOLR-12444:


Commit 45dda74329204c9f86eeec808fa10f80b6a3b966 in lucene-solr's branch 
refs/heads/branch_7x from [~noble.paul]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=45dda74 ]

SOLR-12444: added more assertions to the test


> Updating a cluster policy fails
> ---
>
> Key: SOLR-12444
> URL: https://issues.apache.org/jira/browse/SOLR-12444
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: AutoScaling
>Reporter: Varun Thacker
>Assignee: Noble Paul
>Priority: Major
> Fix For: 7.4, master (8.0)
>
>
> If I create a policy like this
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<4","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> Then I can never update this policy subsequently .
> To reproduce try changing the policy to 
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<3","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> The policy will never change. The workaround is to clear the policy by 
> sending an empty array and then re-creating it 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12444) Updating a cluster policy fails

2018-06-05 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on SOLR-12444:


Commit 9ff3f5a13614c9aefe50c84b9abc653490f536c4 in lucene-solr's branch 
refs/heads/master from [~noble.paul]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9ff3f5a ]

SOLR-12444: added more assertions to the test


> Updating a cluster policy fails
> ---
>
> Key: SOLR-12444
> URL: https://issues.apache.org/jira/browse/SOLR-12444
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: AutoScaling
>Reporter: Varun Thacker
>Assignee: Noble Paul
>Priority: Major
> Fix For: 7.4, master (8.0)
>
>
> If I create a policy like this
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<4","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> Then I can never update this policy subsequently .
> To reproduce try changing the policy to 
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<3","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> The policy will never change. The workaround is to clear the policy by 
> sending an empty array and then re-creating it 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12444) Updating a cluster policy fails

2018-06-05 Thread Varun Thacker (JIRA)


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

Varun Thacker commented on SOLR-12444:
--

Hi Noble,

Can the test not use System.out.println and use a logger?

Also shouldn't we be asserting the new policy "cores < 3" to verify if the 
update was successful ?

> Updating a cluster policy fails
> ---
>
> Key: SOLR-12444
> URL: https://issues.apache.org/jira/browse/SOLR-12444
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: AutoScaling
>Reporter: Varun Thacker
>Assignee: Noble Paul
>Priority: Major
> Fix For: 7.4, master (8.0)
>
>
> If I create a policy like this
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<4","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> Then I can never update this policy subsequently .
> To reproduce try changing the policy to 
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<3","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> The policy will never change. The workaround is to clear the policy by 
> sending an empty array and then re-creating it 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12444) Updating a cluster policy fails

2018-06-05 Thread Noble Paul (JIRA)


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

Noble Paul commented on SOLR-12444:
---

The {{equals()}} implementation of {{Clause}} was wrong

> Updating a cluster policy fails
> ---
>
> Key: SOLR-12444
> URL: https://issues.apache.org/jira/browse/SOLR-12444
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: AutoScaling
>Reporter: Varun Thacker
>Assignee: Noble Paul
>Priority: Major
>
> If I create a policy like this
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<4","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> Then I can never update this policy subsequently .
> To reproduce try changing the policy to 
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<3","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> The policy will never change. The workaround is to clear the policy by 
> sending an empty array and then re-creating it 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12444) Updating a cluster policy fails

2018-06-05 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on SOLR-12444:


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

SOLR-12444: Updating a cluster policy fails


> Updating a cluster policy fails
> ---
>
> Key: SOLR-12444
> URL: https://issues.apache.org/jira/browse/SOLR-12444
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: AutoScaling
>Reporter: Varun Thacker
>Assignee: Noble Paul
>Priority: Major
>
> If I create a policy like this
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<4","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> Then I can never update this policy subsequently .
> To reproduce try changing the policy to 
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<3","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> The policy will never change. The workaround is to clear the policy by 
> sending an empty array and then re-creating it 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-12444) Updating a cluster policy fails

2018-06-05 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on SOLR-12444:


Commit add77d272582e909e9a7cf008d35ea72c3914230 in lucene-solr's branch 
refs/heads/master from [~noble.paul]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=add77d2 ]

SOLR-12444: Updating a cluster policy fails


> Updating a cluster policy fails
> ---
>
> Key: SOLR-12444
> URL: https://issues.apache.org/jira/browse/SOLR-12444
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: AutoScaling
>Reporter: Varun Thacker
>Assignee: Noble Paul
>Priority: Major
>
> If I create a policy like this
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<4","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> Then I can never update this policy subsequently .
> To reproduce try changing the policy to 
> {code:java}
> curl -X POST -H 'Content-type:application/json' --data-binary '{
> "set-cluster-policy": [
> {"cores": "<3","node": "#ANY"}
> ]
> }' http://localhost:8983/solr/admin/autoscaling{code}
> The policy will never change. The workaround is to clear the policy by 
> sending an empty array and then re-creating it 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org