This is an automated email from the ASF dual-hosted git repository.
epugh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 2193374ef0c SOLR-17330: When not set, loadOnStartup defaults to true
(#2513)
2193374ef0c is described below
commit 2193374ef0cffc658e0bd65941cff8b9ba18dc33
Author: Pierre Salagnac <[email protected]>
AuthorDate: Sat Jun 22 17:12:59 2024 +0200
SOLR-17330: When not set, loadOnStartup defaults to true (#2513)
---------
Co-authored-by: Eric Pugh <[email protected]>
---
solr/CHANGES.txt | 2 ++
solr/core/src/java/org/apache/solr/core/CoreDescriptor.java | 8 ++++----
2 files changed, 6 insertions(+), 4 deletions(-)
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() {