SOLR-14504: ZkController LiveNodesListener has NullPointerException in startup race.

This commit is contained in:
Andrzej Bialecki 2020-05-21 18:17:05 +02:00
parent 9c066f60f1
commit 0728ef06e9
2 changed files with 4 additions and 1 deletions

View File

@ -192,6 +192,9 @@ Bug Fixes
* SOLR-14477: Fix incorrect 'relatedness()' calculations in json.facet 'terms' when 'prefix' option is used
(hossman)
* SOLR-14504: ZkController LiveNodesListener has NullPointerException in startup race.
(Colvin Cowie via ab)
Other Changes
---------------------
* SOLR-14197: SolrResourceLoader: marked many methods as deprecated, and in some cases rerouted exiting logic to avoid

View File

@ -1016,7 +1016,7 @@ public class ZkController implements Closeable {
log.warn("Unable to read autoscaling.json", e1);
}
if (createNodes) {
byte[] json = Utils.toJSON(Collections.singletonMap("timestamp", cloudManager.getTimeSource().getEpochTimeNs()));
byte[] json = Utils.toJSON(Collections.singletonMap("timestamp", getSolrCloudManager().getTimeSource().getEpochTimeNs()));
for (String n : oldNodes) {
String path = ZkStateReader.SOLR_AUTOSCALING_NODE_LOST_PATH + "/" + n;