Repository navigation
SOLR-13696: Category and Dimensional routed-alias test suites run again, with a create-alias fix and a time-route fix - #5088
Open
nick-boss-tech wants to merge 10 commits into
Open
nick-boss-tech wants to merge 10 commits into
nick-boss-tech wants to merge 10 commits into
Conversation
….addDocsAndCommit and re-enable the test Hypothetical, unrun regression test; see SOLR-13696-TESTING.md.
…defines Category tests used ship_name_en, which the server _default configset never defines, so autoCreateFields=false rejects every document. Use the string dynamic field ship_name_s. The explicit commit now fails with a clear message if the alias is not listed, instead of a null dereference.
…alias message for dimensional aliases
…lues instead of casting it to Date
…to now in the dimensional routed alias test
…l routed alias placement check
nick-boss-tech
marked this pull request as ready for review
October 9, 2026 23:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖 (posted on behalf of Nick Shanin)
https://issues.apache.org/jira/browse/SOLR-13696
What happens today
The Category and Dimensional routed-alias update tests are skipped. When the skip is removed, they fail in several places.
Both suites extend
RoutedAliasUpdateProcessorTest, which was skipped for this ticket. When the skip is removed:[shard]in its default style. At luceneMatchVersion 9.5 that style returns a bare shard id. The id holds neither the category nor the day the check asserts.ClassCastExceptioninTimeRoutedAlias.formattedRouteValues. The create-alias failure stops the suite before it gets that far.What this change does
The two suites run again, their tests are repaired, and two production defects are fixed.
@AwaitsFixon the base class is removed, so the Category and Dimensional suites run in normal mode. The base class keeps its@Ignore, since it is abstract (base class).addDocsAndCommitcommits each collection of the alias explicitly and no longer relies on commitWithin (commit loop).@Aftermethod (L72-L82).ship_name_sinstead ofship_name_en(L53).[shard]in URL style (L282-L293).Dimensional[TIME,CATEGORY]form, and the comma-joined router field. That is the shape SolrJ already sends (CreateAlias, SolrJ). The change applies to every dimensional alias created through the create-alias API, not only in tests.CreateAliasAPITestnow expects 12 entries, up from 10, and checks both new keys (L308-L311).formattedRouteValuesparses the value withparseRouteKeyinstead of casting it toDate(L219-L225, parseRouteKey). A string timestamp is now parsed. Only dimensional aliases call this method (caller).Proof
The focused suites pass at head
da4fa6df11784ce5a83bc7e74ec7b6aa78f689b9, and each repair fails without its fix.CategoryRoutedAliasUpdateProcessorTest6 of 6.DimensionalRoutedAliasUpdateProcessorTest2 of 2.CreateAliasAPITest13 of 13.Each repair was also run without its fix:
98ad9d3fcc33, fails.a4e0da422327, fails.[shard]repair: the run on the test file before this repair, at08f9384e47c0, fails.c3cdf7b46e8fails both Dimensional tests at CREATEALIAS.A choice to check
The create-alias fix rides along with the test repair. It could move to its own ticket and PR.
The create-alias message. Options considered:
Was keeping the create-alias fix in this branch the right call?
Limits
This change adds no Time coverage, and the routed-alias tests no longer use commitWithin.
TimeRoutedAliasUpdateProcessorTestkeeps its own@AwaitsFix(SOLR-13059)(L75) and stays skipped. No Time coverage comes from this change. One more method in that class,testDateMathInStart, is skipped under SOLR-13943 (L966), which is separate work.Changelog:
changelog/unreleased/SOLR-13696-dimensional-routed-alias.yml(typefixed), one entry covering both production fixes.AI assistance
AI agents assisted with research, implementation, review, and drafting. Nick Shanin directed the work and takes responsibility for this contribution.