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

   Not off hand, but you can likely just create a collection, create a 
DocCollection with the state you want, convert it to json with the code that 
does that, and then overwrite cluster state straight to ZK.
   
   But my point is, at least when I glanced at the change, it looked like it 
retried if the collection wasn't there. If that is the case, even if that 
worked 100%,it would only cover a fraction of the fails the waitFor calls 
handle in tests. They wait for every shard and every replica that a collection 
api call will create (it's not just collection create calls).
   
   Without ensuring every shard and replica is there, rare, hard to debug 
timing fails will return (less rare on CI runs or in resource constrained 
envs), as a test will often do something that expects all parts of what they 
just said to create to exist once that call has returned. 
   
   


-- 
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