Jerry Chung created SOLR-18391:
----------------------------------

             Summary: PlacementPluginAssignStrategy.assign() NPE on null 
getCollection() during collection creation leaves zombie collection with no 
replicas
                 Key: SOLR-18391
                 URL: https://issues.apache.org/jira/browse/SOLR-18391
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Server
    Affects Versions: 10.0
            Reporter: Jerry Chung


* Where it happens ({{{}PlacementPluginAssignStrategy.assign(){}}})
 * What causes it (null from {{getCollection()}} — the race between 
{{waitForState}} and {{getClusterState()}} in {{{}CreateCollectionCmd{}}})
 * The consequence (zombie collection with 0 replicas, no cleanup — unlike the 
{{Assign.AssignmentException}} path which calls {{{}DeleteCollectionCmd{}}})

 

The NPE hits {{catch (Exception ex) \{ throw new SolrException(SERVER_ERROR, 
null, ex); }}} with a null message, bypassing the cleanup code, making the 
error hard to diagnose on the client side.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to