lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Updated] (SOLR-13252) NPE trying to set autoscaling policy for existing collection
Date Thu, 16 May 2019 14:08:00 GMT

     [ https://issues.apache.org/jira/browse/SOLR-13252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Høydahl updated SOLR-13252:
-------------------------------
    Fix Version/s: 7.7.2

> NPE trying to set autoscaling policy for existing collection
> ------------------------------------------------------------
>
>                 Key: SOLR-13252
>                 URL: https://issues.apache.org/jira/browse/SOLR-13252
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: AutoScaling
>    Affects Versions: 7.7, 8.0, master (9.0)
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>            Priority: Major
>             Fix For: 7.7.2, 8.0, master (9.0)
>
>         Attachments: SOLR-13252.patch
>
>
> Steps to reproduce:
> * create a collection without collection-specific policy, eg. {{test}}
> * define a collection-specific policy {{policy1}}:
> {code}
> POST http://localhost:8983/solr/admin/autoscaling
> {
> "set-policy": 
>   {
> 	"policy1" :[
> 		{"replica": "<2", "shard": "#EACH", "node": "#ANY"}
> 	]
>   }
> }
> {code}
> * try to modify the collection to use this policy
> {code}
> http://localhost:8983/solr/admin/collections?action=MODIFYCOLLECTION&collection=test&policy=policy1
> {code}
> A NullPointerException is thrown due to the previous value of the "policy" property being
absent:
> {code}
> 2019-02-14 18:48:17.007 ERROR (OverseerThreadFactory-9-thread-5-processing-n:192.168.0.69:8983_solr)
[c:test   ] o.a.s.c.a.c.OverseerCollectionMessageHandler Collection: test operation: modifycollection
failed:java.lang.NullPointerException
>         at org.apache.solr.cloud.api.collections.OverseerCollectionMessageHandler.modifyCollection(OverseerCollectionMessageHandler.java:687)
>         at org.apache.solr.cloud.api.collections.OverseerCollectionMessageHandler.processMessage(OverseerCollectionMessageHandler.java:292)
>         at org.apache.solr.cloud.OverseerTaskProcessor$Runner.run(OverseerTaskProcessor.java:496)
>         at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> {code}



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

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


Mime
View raw message