Skip to content

Commit

Permalink
SOLR-17330: When not set, loadOnStartup defaults to true (#2513)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Eric Pugh <[email protected]>
  • Loading branch information
psalagnac and epugh authored Jun 22, 2024
1 parent 7d57f3e commit 2193374
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions solr/core/src/java/org/apache/solr/core/CoreDescriptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,13 @@ public CloudDescriptor getCloudDescriptor() {
}

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() {
Expand Down

0 comments on commit 2193374

Please sign in to comment.