This is an automated email from the ASF dual-hosted git repository.

epugh pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 7010dbcf74d SOLR-17330: When not set, loadOnStartup defaults to true 
(#2513)
7010dbcf74d is described below

commit 7010dbcf74d4915da859c5f12be72fd4436e6bae
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                                            | 4 ++++
 solr/core/src/java/org/apache/solr/core/CoreDescriptor.java | 8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 5759f229d53..b5d3a98f48f 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -46,6 +46,10 @@ Optimizations
 
 * SOLR-17099: Do not return spurious tags when fetching metrics from a Solr 
node to another. (Pierre Salagnac)
 
+* 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() {

Reply via email to