SOLR-8380: Add core name in assert message

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1718675 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2015-12-08 18:49:14 +00:00
parent fe731fd449
commit d6b3312d82
1 changed files with 1 additions and 1 deletions

View File

@ -1548,7 +1548,7 @@ public final class ZkController {
if (!Overseer.isLegacy(zkStateReader.getClusterProps())) {
CloudDescriptor cloudDesc = cd.getCloudDescriptor();
String coreNodeName = cloudDesc.getCoreNodeName();
assert coreNodeName != null;
assert coreNodeName != null : "SolrCore: " + cd.getName() + " has no coreNodeName";
if (cloudDesc.getShardId() == null) {
throw new SolrException(ErrorCode.SERVER_ERROR, "No shard id for :" + cd);
}