-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLR-16781: Disable <lib/> by default on 9.x #2894
SOLR-16781: Disable <lib/> by default on 9.x #2894
Conversation
`<lib/>` usage will now log a warning by default for future 9.x releases. Wary users can re-enabled the feature by specifying a sysprop: `solr.config.lib.enabled=true`. This commit is intended only for branch_9x (i.e. NOT main)
@@ -620,10 +620,15 @@ protected Map<String, Object> startSolr( | |||
if (!isWindows && cwdPath.length() > 1 && solrHome.startsWith(cwdPath)) | |||
solrHome = solrHome.substring(cwdPath.length() + 1); | |||
|
|||
final var syspropArg = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are adding this, should the lib directive be removed from the example configSet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already gone, afaict. @epugh removed it (unrelated to this change) in a recent PR here
@@ -70,6 +72,7 @@ public static void beforeClass() { | |||
Paths.get(".").toAbsolutePath().toString().contains(" ")); | |||
// to be true | |||
System.setProperty("solr.directoryFactory", "solr.NRTCachingDirectoryFactory"); | |||
System.setProperty(LIB_ENABLED_SYSPROP, "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we remove the lib directives in the example ConfigSet, these should be able to be removed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed!
https://issues.apache.org/jira/browse/SOLR-16781
Description
<lib/>
usage will now log a warning by default for future 9.x releases. Wary users can re-enabled the feature by specifying a sysprop:solr.config.lib.enabled=true
.This PR is a companion to #2875, which makes more aggressive changes (removing
<lib>
altogether) on the 'main' branch. As such, this PR is only intended for branch_9x, and #2875 is only intended for 'main'.Tests
New test in
TestConfigWithLibDisabled
Checklist
Please review the following and check all that apply:
./gradlew check
.