You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "gerlowskija (via GitHub)" <gi...@apache.org> on 2026/03/21 01:15:40 UTC

[PR] SOLR-18163: Remove v2-disabling sysprop [solr]

gerlowskija opened a new pull request, #4233:
URL: https://github.com/apache/solr/pull/4233

   https://issues.apache.org/jira/browse/SOLR-18163
   
   # Description
   
   Solr has long supported an experimental sysprop `solr.api.v2.enabled` that can be used to disable the v2 API if set to false.  This has been a nice safety-valve for users, but it prevents us from doing any dog-fooding of the v2 APIs since it makes it possible for the APIs to not be available at all.
   
   The v2 APIs are maturing and would really benefit from this additional testing and feedback.
   
   # Solution
   
   This commit removes the experimental system property and all references to v2 "optionality" in the codebase.
   
   # Tests
   
   Modifications to a BATS test meant to test our deprecation sysprop warnings.
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [x] I have reviewed the guidelines for [How to Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my code conforms to the standards described there to the best of my ability.
   - [x] I have created a Jira issue and added the issue ID to my pull request title.
   - [x] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended, not available for branches on forks living under an organisation)
   - [x] I have developed this patch against the `main` branch.
   - [x] I have run `./gradlew check`.
   - [x] I have added tests for my changes.
   - [ ] I have added documentation for the [Reference Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide)
   - [ ] I have added a [changelog entry](https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc) for my change
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18163: Remove v2-disabling sysprop [solr]

Posted by "gerlowskija (via GitHub)" <gi...@apache.org>.
gerlowskija merged PR #4233:
URL: https://github.com/apache/solr/pull/4233


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18163: Remove v2-disabling sysprop [solr]

Posted by "gerlowskija (via GitHub)" <gi...@apache.org>.
gerlowskija commented on PR #4233:
URL: https://github.com/apache/solr/pull/4233#issuecomment-4101742270

   Still TODO here:
   
   - changelog entry
   - Upgrade Notes entry, so folks can see that this sysprop has gone away
   
   This PR is for 'main' only.  But when we backport this to branch_10x, we should also put a check on startup that can log a message if the (now defunct) system property is specified, so that users can notice that this former config option is no longer actually doing anything for them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18163: Remove v2-disabling sysprop [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #4233:
URL: https://github.com/apache/solr/pull/4233#issuecomment-4197283180

   > Actually, my warning-log in branch_10x ended up looking pretty general purpose.  Essentially, EnvUtils now has a list of removed properties and the 'init' in that class will check to see if any of those "removed props" are currently set.  If so, a warning is logged.
   > 
   > 
   > 
   > 
   > 
   > If we like that general approach, we can bring it forward to 'main'.  Right now that bit of code is only on branch_10x, which feels a little weird.
   > 
   > 
   > 
   > Here's the commit, for reference: https://github.com/apache/solr/commit/121f8ba25f380672bcb902c931415383fea55c46
   
   I was hoping you used EnvUtils and I think this is a great way of handling more generically.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18163: Remove v2-disabling sysprop [solr]

Posted by "gerlowskija (via GitHub)" <gi...@apache.org>.
gerlowskija commented on PR #4233:
URL: https://github.com/apache/solr/pull/4233#issuecomment-4194590709

   Actually, my warning-log in branch_10x ended up looking pretty general purpose.  Essentially, EnvUtils now has a list of removed properties and the 'init' in that class will check to see if any of those "removed props" are currently set.  If so, a warning is logged.
   
   
   If we like that general approach, we can bring it forward to 'main'.  Right now that bit of code is only on branch_10x, which feels a little weird.
   
   Here's the commit, for reference: https://github.com/apache/solr/commit/121f8ba25f380672bcb902c931415383fea55c46


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] SOLR-18163: Remove v2-disabling sysprop [solr]

Posted by "gerlowskija (via GitHub)" <gi...@apache.org>.
gerlowskija commented on PR #4233:
URL: https://github.com/apache/solr/pull/4233#issuecomment-4194381794

   > Do we need a way of flagging no longer used system properties/settings in a global way?
   
   I'm not going to bite that off as a part of this ticket, but it does seem like it'd be nice, generally.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org