mirror of https://github.com/apache/lucene.git
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:
parent
fe731fd449
commit
d6b3312d82
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue