Skip to content

SOLR-18458: Remove the legacy debugQuery parameter - #5215

Closed
nick-boss-tech wants to merge 1 commit into
apache:mainfrom
nick-boss-tech:solr-18458-submit
Closed

nick-boss-tech wants to merge 1 commit into
apache:mainfrom
nick-boss-tech:solr-18458-submit

Conversation

@nick-boss-tech

Copy link
Copy Markdown
Contributor

🤖 AI text below 🤖 (reviewed by Nick Shanin)

https://issues.apache.org/jira/browse/SOLR-18458

What happens today

The legacy debugQuery=true parameter still enables debug output alongside the debug parameter that replaced it. The ticket asks to drop debugQuery in lieu of debug=all. At the base, CommonParams still defines it and the debug component still honors it, and a rerank fallback treats debug=results as a debug request even without a response builder asking for one.

What this change does

debugQuery is removed; debug is the only switch. The constant and its handling are gone from CommonParams and DebugComponent, SolrJ and the Admin UI no longer send or offer it, and the Ref Guide pages that documented it now document debug only. The rerank fallback now keys on debug=all and debug=true, not debug=results. Tests that used debugQuery are migrated to the debug parameter, and a new test pins that the legacy parameter is ignored.

Proof

The new coverage fails without the change and passes with it, and the touched modules check clean. Verified at the gated tree (this head is a squash of that tree, byte-identical):

  • The legacy-parameter test fails against the base code and passes at the head: DebugComponentTest.testLegacyDebugQueryParameterIgnored.
  • Focused runs at seed 18458C0FFEE18458: core 290 tests, SolrJ 2 tests, LTR 91 tests, language-models 23 tests, no failures; the rerank tests run 14 with no failures, including the new debug=all fallback test.
  • Tidy is clean, Error Prone compilation passes, and check -x test passes on :solr:core, :solr:solrj, :solr:modules:ltr, and :solr:modules:language-models.

Limits

  • The parameter is dropped outright rather than deprecated first. The ticket floats a DeprecationLog warning for 10.x as an option; this change targets the next major release and removes the parameter there.
  • A request that still passes debugQuery=true now gets no debug output and no warning. That silence is inherited from how unknown parameters behave generally in Solr.

Checklist

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title. SOLR-18458
  • I have given Solr maintainers access to contribute to my PR branch.
  • I have developed this patch against the main branch.
  • I have run ./gradlew check. Not run in full: the module checks listed under Proof pass at the head.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide.
  • I have added a changelog entry.

AI-generated description. Nick Shanin directed the work and takes responsibility for this contribution.

@nick-boss-tech

Copy link
Copy Markdown
Contributor Author

Closing this for now: the 10.x deprecation step should probably come first, so we will rethink the approach before reopening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant