Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-17330: When not set, loadOnStartup defaults to true (#2513)

Pierre Salagnac2193374ef0cf
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 9ce1c138778..2ca207bbf42 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -144,6 +144,8 @@ Optimizations
* SOLR-17269: Prevent the "Coordinator node" feature from registering synthetic cores in ZooKeeper (Patson Luk)
+* SOLR-17330: When not set, loadOnStartup defaults to true, which is the default choice for a core. (Pierre Salagnac via Eric Pugh)
+
Bug Fixes
---------------------
* SOLR-12813: subqueries should respect basic auth. (Rudy Seitz via Eric Pugh)
diff --git a/solr/core/src/java/org/apache/solr/core/CoreDescriptor.java b/solr/core/src/java/org/apache/solr/core/CoreDescriptor.java
index 5c4744baeba..6109b2f860b 100644
--- a/solr/core/src/java/org/apache/solr/core/CoreDescriptor.java
+++ b/solr/core/src/java/org/apache/solr/core/CoreDescriptor.java
@@ -345,13 +345,13 @@ public class CoreDescriptor {
}
public boolean isLoadOnStartup() {
- String tmp = coreProperties.getProperty(CORE_LOADONSTARTUP, "false");
- return Boolean.parseBoolean(tmp);
+ String stringValue = coreProperties.getProperty(CORE_LOADONSTARTUP, "true");
+ return Boolean.parseBoolean(stringValue);
}
public boolean isTransient() {
- String tmp = coreProperties.getProperty(CORE_TRANSIENT, "false");
- return PropertiesUtil.toBoolean(tmp);
+ String stringValue = coreProperties.getProperty(CORE_TRANSIENT, "false");
+ return PropertiesUtil.toBoolean(stringValue);
}
public String getUlogDir() {