You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/07/15 02:24:50 UTC
[lucene-solr] branch reference_impl updated: #167 - Actually,
lets just toss this.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl by this push:
new e175d47 #167 - Actually, lets just toss this.
e175d47 is described below
commit e175d47356ebf873a7bf48df35c6571dc8daabdb
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Tue Jul 14 21:24:39 2020 -0500
#167 - Actually, lets just toss this.
---
.../org/apache/solr/cloud/CloudConfigSetService.java | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/cloud/CloudConfigSetService.java b/solr/core/src/java/org/apache/solr/cloud/CloudConfigSetService.java
index 56481ff..84e1c41 100644
--- a/solr/core/src/java/org/apache/solr/cloud/CloudConfigSetService.java
+++ b/solr/core/src/java/org/apache/solr/cloud/CloudConfigSetService.java
@@ -51,22 +51,6 @@ public class CloudConfigSetService extends ConfigSetService {
public SolrResourceLoader createCoreResourceLoader(CoreDescriptor cd) {
final String colName = cd.getCollectionName();
- // For back compat with cores that can create collections without the collections API
- try {
- if (!zkController.getZkClient().exists(ZkStateReader.COLLECTIONS_ZKNODE + "/" + colName, true)) {
- // TODO remove this functionality or maybe move to a CLI mechanism
- log.warn("Auto-creating collection (in ZK) from core descriptor (on disk). This feature may go away!");
- if (!zkController.getCoreContainer().isShutDown()) {
- CreateCollectionCmd.createCollectionZkNode(zkController.getSolrCloudManager().getDistribStateManager(), colName, cd.getCloudDescriptor().getParams(), null);
- }
- }
- } catch (InterruptedException e) {
- Thread.currentThread().interrupt();
- throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR, "Interrupted auto-creating collection", e);
- } catch (KeeperException e) {
- throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR, "Failure auto-creating collection", e);
- }
-
// The configSet is read from ZK and populated. Ignore CD's pre-existing configSet; only populated in standalone
final String configSetName;
try {