Colvin Cowie created SOLR-14504:
-----------------------------------

             Summary: ZkController LiveNodesListener has NullPointerException 
in startup race
                 Key: SOLR-14504
                 URL: https://issues.apache.org/jira/browse/SOLR-14504
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 8.5.1, 8.4.1, 8.5, 8.3.1, 8.4, 8.3, 8.1.1, 7.7.3, 8.2, 
8.1, 8.0, 7.7.2, 7.7.1, 7.7
            Reporter: Colvin Cowie


If a NODELOST event happens before the cloudManager is initialized then a 
NullPointerException will occur on this line 
[https://github.com/apache/lucene-solr/blob/c18666ad05afc02979c150aacd4810cff02e43f3/solr/core/src/java/org/apache/solr/cloud/ZkController.java#L1020]
{code:java}
byte[] json = Utils.toJSON(Collections.singletonMap("timestamp", 
cloudManager.getTimeSource().getEpochTimeNs())); {code}
Rather than accessing cloudManager directly, getSolrCloudManager() should be 
called

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to