nick-boss-tech opened a new pull request, #5004:
URL: https://github.com/apache/solr/pull/5004

   🤖 *AI text below* 🤖 *(posted on behalf of Nick Shanin)*
   
   https://issues.apache.org/jira/browse/SOLR-16130
   
   Regression test for the SOLR-16130 symptom: a cross-collection join 
returning no documents when the from-collection's export has a trailing segment 
with no matches. The root-cause fix (a null-bitset guard in 
`ExportWriter.topDocs()`) already merged in #4953 (SOLR-8291); this PR adds the 
test proving the reported scenario now works, plus the changelog entry.
   
   - 
`CrossCollectionJoinQueryTest.testCcJoinWithTrailingUnmatchedExportSegment`: 
indexes matching docs, commits, indexes non-matching docs, commits (trailing 
unmatched segment), then runs the cross-collection join and expects the 4 
matching docs.
   - Enables `useFilterForSortedQuery` in the ccjoin test configset: that 
setting routes `/export` through `sortDocSet`, which is the path that skips 
`getLeafCollector` for trailing unmatched leaves (per #4953's analysis). Only 
`CrossCollectionJoinQueryTest` uses this configset.
   
   Tests: `CrossCollectionJoinQueryTest` validation still to run.
   
   ### AI assistance
   
   AI agents assisted with research, implementation, review, and drafting. Nick 
Shanin directed the work and takes responsibility for this contribution.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to