You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2022/10/18 05:10:34 UTC

[solr] branch branch_9x updated: SOLR-16452: initialize missing PRS with version 0

This is an automated email from the ASF dual-hosted git repository.

noble pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 872af1d9fca SOLR-16452: initialize missing PRS with version 0
872af1d9fca is described below

commit 872af1d9fca5a8aa21dc366fffad2c9eba1806aa
Author: Noble Paul <no...@gmail.com>
AuthorDate: Tue Oct 18 16:09:15 2022 +1100

    SOLR-16452: initialize missing PRS with version 0
---
 .../src/java/org/apache/solr/common/cloud/PerReplicaStatesFetcher.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/PerReplicaStatesFetcher.java b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/PerReplicaStatesFetcher.java
index c9bf7d7f087..f959cab3e03 100644
--- a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/PerReplicaStatesFetcher.java
+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/PerReplicaStatesFetcher.java
@@ -33,7 +33,7 @@ public class PerReplicaStatesFetcher {
     try {
       if (current != null) {
         Stat stat = zkClient.exists(current.path, null, true);
-        if (stat == null) return new PerReplicaStates(path, -1, Collections.emptyList());
+        if (stat == null) return new PerReplicaStates(path, 0, Collections.emptyList());
         if (current.cversion == stat.getCversion()) return current; // not modifiedZkStateReaderTest
       }
       Stat stat = new Stat();