mirror of https://github.com/apache/lucene.git
SOLR-6787: .system collection create fails if /configs dir is not present in ZK
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1656747 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b93c66c25
commit
7a73a2a9b3
|
@ -869,6 +869,7 @@ public class CollectionsHandler extends RequestHandlerBase {
|
||||||
|
|
||||||
private void createSysConfigSet() throws KeeperException, InterruptedException {
|
private void createSysConfigSet() throws KeeperException, InterruptedException {
|
||||||
SolrZkClient zk = coreContainer.getZkController().getZkStateReader().getZkClient();
|
SolrZkClient zk = coreContainer.getZkController().getZkStateReader().getZkClient();
|
||||||
|
createNodeIfNotExists(zk,ZkStateReader.CONFIGS_ZKNODE, null);
|
||||||
createNodeIfNotExists(zk,ZkStateReader.CONFIGS_ZKNODE+"/"+SYSTEM_COLL, null);
|
createNodeIfNotExists(zk,ZkStateReader.CONFIGS_ZKNODE+"/"+SYSTEM_COLL, null);
|
||||||
createNodeIfNotExists(zk,ZkStateReader.CONFIGS_ZKNODE+"/"+SYSTEM_COLL+"/schema.xml", BlobHandler.SCHEMA.replaceAll("'","\"").getBytes(StandardCharsets.UTF_8));
|
createNodeIfNotExists(zk,ZkStateReader.CONFIGS_ZKNODE+"/"+SYSTEM_COLL+"/schema.xml", BlobHandler.SCHEMA.replaceAll("'","\"").getBytes(StandardCharsets.UTF_8));
|
||||||
createNodeIfNotExists(zk, ZkStateReader.CONFIGS_ZKNODE + "/" + SYSTEM_COLL + "/solrconfig.xml", BlobHandler.CONF.replaceAll("'", "\"").getBytes(StandardCharsets.UTF_8));
|
createNodeIfNotExists(zk, ZkStateReader.CONFIGS_ZKNODE + "/" + SYSTEM_COLL + "/solrconfig.xml", BlobHandler.CONF.replaceAll("'", "\"").getBytes(StandardCharsets.UTF_8));
|
||||||
|
|
Loading…
Reference in New Issue