mirror of https://github.com/apache/lucene.git
SOLR-10995: Improve ChaosMonkey logic to find Jetty running leader node
This commit is contained in:
parent
077e8b1da4
commit
6a55def1ea
|
@ -418,11 +418,7 @@ public class ChaosMonkey {
|
|||
CoreContainer cc = cjetty.jetty.getCoreContainer();
|
||||
if (cc != null) {
|
||||
try (SolrCore core = cc.getCore(leader.getStr(ZkStateReader.CORE_NAME_PROP))) {
|
||||
if (core == null) {
|
||||
monkeyLog("selected jetty not running correctly - skip");
|
||||
return null;
|
||||
}
|
||||
rtIsLeader = core.getCoreDescriptor().getCloudDescriptor().isLeader();
|
||||
rtIsLeader = core != null && core.getCoreDescriptor().getCloudDescriptor().isLeader();
|
||||
}
|
||||
} else {
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue