madrob commented on a change in pull request #759:
URL: https://github.com/apache/solr/pull/759#discussion_r834655528



##########
File path: solr/core/src/java/org/apache/solr/core/CoreContainer.java
##########
@@ -1886,7 +1886,7 @@ public void reload(String name, UUID coreId) {
 
         if (docCollection != null) {
           Replica replica = 
docCollection.getReplica(cd.getCloudDescriptor().getCoreNodeName());
-          assert replica != null;
+          assert replica != null : cd.getCloudDescriptor().getCoreNodeName() + 
" had no replica";

Review comment:
       This came in while I was trying to debug a failure that my changes 
introduces. I can take it back out, but figured more logging and error messages 
are likely better than less.




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