aparnasuresh85 commented on PR #2363:
URL: https://github.com/apache/solr/pull/2363#issuecomment-2013499876

   > I'm glad to see the logic that was in V2HttpCall made more common (move to 
base class) as it should not have been specific to V2. Perhaps my oversight 6 
years ago.
   > 
   > Updating ZkClientClusterStateProvider is only one of the two 
ClusterStateProviders. I suspect the other Http one can be tested to show that 
this problem existed (and still exists now!) whereas probably too hard to 
bother with ZkClientClusterStateProvider; unclear how to trigger a pause in ZK 
watching without being too invasive.
   > 
   > Assuming we address this for both providers, the javadocs for this method 
ought to communicate the guarantee on not returning null if the collection 
exists.
   
   The reason I did not make the logic consistent across both providers is 
because BaseHttpClusterStateProvider, where the logic for getState() is 
implemented for the http version, checks all livenodes for presence of the 
collection/collectionRef via a SolrQuery. I felt that was comprehensive enough.
   
   I can update the javadoc for the method as per your suggestion.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to