mlbiscoc commented on code in PR #2935:
URL: https://github.com/apache/solr/pull/2935#discussion_r1904552713


##########
solr/solrj/src/java/org/apache/solr/client/solrj/impl/BaseHttpClusterStateProvider.java:
##########
@@ -51,7 +52,9 @@ public abstract class BaseHttpClusterStateProvider implements 
ClusterStateProvid
   private static final Logger log = 
LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
 
   private String urlScheme;
+  private Set<String> initialNodes;
   volatile Set<String> liveNodes;
+  volatile Set<String> knownNodes;

Review Comment:
   I originally did it with just `liveNodes` but liveNodes is returned to the 
client which from it's name I was thinking they would assume they are "live". 
If we just place all the nodes into liveNodes thats not necessarily true, 
right? If the current set hold all the initially passed nodes, it isn't 
guaranteed it's live which is why I switched to known nodes while live is what 
was actually fetched from ZooKeeper.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to