Skip to content

Commit

Permalink
#154 - Change SPI reload default.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrmiller committed Jul 14, 2020
1 parent 296701e commit a745b3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ synchronized void addToClassLoader(List<URL> urls) {
* and before using this ResourceLoader.
*/
synchronized void reloadLuceneSPI() {
if (Boolean.getBoolean("solr.skipReloadSPI")) {
if (!Boolean.getBoolean("solr.reloadSPI")) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ public static void setDefaultConfigDirSysPropIfNotSet() throws Exception {
// can make things quite slow
System.setProperty("solr.disableJmxReporter", "true");
System.setProperty("solr.skipCommitOnClose", "true");
System.setProperty("solr.skipReloadSPI", "true"); // can generate tons of URL garbage and can happen too often

// can generate tons of URL garbage and can happen too often, defaults to false now anyway
System.setProperty("solr.reloadSPI", "false");

// nocommit - not used again yet
System.setProperty("solr.OverseerStateUpdateDelay", "0");
Expand Down

0 comments on commit a745b3c

Please sign in to comment.