abumarjikar commented on PR #3684:
URL: https://github.com/apache/solr/pull/3684#issuecomment-3346571279

   @dsmiley Mostly all the watchers are failing to complete or to fulfil the 
replica requirement. I might need help to which watcher to utilise in this case.
   
   > if (waitForFinalState) {
           SolrCloseableLatch latch =
               new SolrCloseableLatch(totalReplicas, 
ccc.getCloseableToLatchOn());
           ActiveReplicaWatcher watcher =
               new ActiveReplicaWatcher(
                   collectionName,
                   null,
                   createReplicas.stream()
                       .map(createReplica -> createReplica.coreName)
                       .collect(Collectors.toList()),
                   latch);
           try {
             zkStateReader.registerCollectionStateWatcher(collectionName, 
watcher);
             runnable.run();
             if (!latch.await(timeout, TimeUnit.SECONDS)) {
               throw new SolrException(
                   SolrException.ErrorCode.SERVER_ERROR,
                   "Timeout waiting " + timeout + " seconds for replica to 
become active.");
             }
           } finally {
             zkStateReader.removeCollectionStateWatcher(collectionName, 
watcher);
           }
         }
   
   This is from addreplicacmd.


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