epugh commented on code in PR #3904:
URL: https://github.com/apache/solr/pull/3904#discussion_r2658951992


##########
solr/core/src/java/org/apache/solr/core/CoreContainer.java:
##########
@@ -1511,6 +1511,16 @@ public SolrCore create(
           preExistingZkEntry = 
getZkController().checkIfCoreNodeNameAlreadyExists(cd);
         }
 
+        final boolean deleteUnknownCores =
+            Boolean.parseBoolean(
+                System.getProperty("solr.cloud.delete.unknown.cores.enabled", 
"false"));
+        if (deleteUnknownCores && Files.exists(cd.getInstanceDir())) {
+          log.warn(
+              "There appears to be an existing directory for core {}, now 
deleting it",
+              cd.getName());
+          SolrCore.deleteUnloadedCore(cd, true, true);

Review Comment:
   Ugh, I think I'm not going to do this one, as I don't know how far down the 
rabbit hole to go...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to