mirror of https://github.com/apache/lucene.git
SOLR-5415
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1538325 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5e87b67337
commit
e3fa6f3367
|
@ -271,7 +271,7 @@ public class CoreContainer {
|
|||
c = create(cd);
|
||||
registerCore(cd.isTransient(), name, c, false);
|
||||
} catch (Throwable t) {
|
||||
if (isZooKeeperAware()) {
|
||||
/* if (isZooKeeperAware()) {
|
||||
try {
|
||||
zkSys.zkController.unregister(name, cd);
|
||||
} catch (InterruptedException e) {
|
||||
|
@ -280,7 +280,7 @@ public class CoreContainer {
|
|||
} catch (KeeperException e) {
|
||||
SolrException.log(log, null, e);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
SolrException.log(log, null, t);
|
||||
if (c != null) {
|
||||
c.close();
|
||||
|
@ -834,7 +834,7 @@ public class CoreContainer {
|
|||
// remains to be seen how transient cores and such
|
||||
// will work in SolrCloud mode, but just to be future
|
||||
// proof...
|
||||
if (isZooKeeperAware()) {
|
||||
/*if (isZooKeeperAware()) {
|
||||
try {
|
||||
getZkController().unregister(name, desc);
|
||||
} catch (InterruptedException e) {
|
||||
|
@ -843,7 +843,7 @@ public class CoreContainer {
|
|||
} catch (KeeperException e) {
|
||||
SolrException.log(log, null, e);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
throw recordAndThrow(name, "Unable to create core: " + name, ex);
|
||||
} finally {
|
||||
solrCores.removeFromPendingOps(name);
|
||||
|
|
Loading…
Reference in New Issue