SOLR-9846: Don't run Overseer threads if CoreContainer is shutdown.

This commit is contained in:
markrmiller 2017-02-19 14:18:04 -05:00
parent 7e30fe1471
commit b30b6c58f7
1 changed files with 3 additions and 2 deletions

View File

@ -744,8 +744,9 @@ final class OverseerElectionContext extends ElectionContext {
log.warn("Wait interrupted ", e);
}
}
overseer.start(id);
if (overseer.getZkController() == null || overseer.getZkController().getCoreContainer() == null || !overseer.getZkController().getCoreContainer().isShutDown()) {
overseer.start(id);
}
}
@Override