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 2025/05/12 01:49:41 UTC
[PR] SOLR-17758: Fix limiting-URP "warnOnly" mode [solr]
gerlowskija opened a new pull request, #3348:
URL: https://github.com/apache/solr/pull/3348
https://issues.apache.org/jira/browse/SOLR-17758
# Description
Due to a bug in the initial implementation, the "warnOnly" mode of the NumFieldLimiting "URP" never worked as designed. The "warn" codepath failed to call `propagateAdd` for the next URP in the chain. This makes the "warn only" behavior indistinguishable from the "hard limit" behavior from a user perspective.
# Solution
This commit fixes the bug by ensuring that the `processAdd` call is propagated, in all cases. It also adds integration testing for several "warn only" mode related scenarios, to prevent against future regressions.
# Tests
See `NumFieldLimitingUpdateRequestProcessorIntegrationTest`
# 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.
--
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-17758: Fix limiting-URP "warnOnly" mode [solr]
Posted by "gerlowskija (via GitHub)" <gi...@apache.org>.
gerlowskija commented on PR #3348:
URL: https://github.com/apache/solr/pull/3348#issuecomment-2888560330
Ooh, good catch Rahul! I'm afk, but excited to try this out in a bit.
Pretty sure I copy/pasted that arg-parsing from elsewhere in Solr, so I bet there's a few other places with that bug that we can fix as well 🤔
--
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-17758: Fix limiting-URP "warnOnly" mode [solr]
Posted by "gerlowskija (via GitHub)" <gi...@apache.org>.
gerlowskija commented on PR #3348:
URL: https://github.com/apache/solr/pull/3348#issuecomment-2889375328
Looks like this fixed my test issues - I take back what I said earlier about potential "race" issues with the reload API.
--
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-17758: Fix limiting-URP "warnOnly" mode [solr]
Posted by "gerlowskija (via GitHub)" <gi...@apache.org>.
gerlowskija merged PR #3348:
URL: https://github.com/apache/solr/pull/3348
--
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