Add BWC tests for search_after in hybrid query - #1903
Conversation
Add restart-upgrade and rolling-upgrade BWC tests validating sort + search_after pagination with hybrid queries, and gate them behind versions >= 2.16 where the feature was introduced. Signed-off-by: Sarthak Raghuvanshi <sarthakraghuvanshi1005@gmail.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1903 +/- ##
============================================
- Coverage 83.45% 83.42% -0.03%
+ Complexity 3898 3896 -2
============================================
Files 291 291
Lines 13844 13844
Branches 2304 2304
============================================
- Hits 11553 11550 -3
- Misses 1456 1457 +1
- Partials 835 837 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
Adds restart-upgrade and rolling-upgrade BWC tests validating that
sort + search_after (deep pagination) on a hybrid query returns
correctly ordered, correctly paginated results across old, mixed, and
upgraded cluster states. Both suites are gated to skip on versions
below 2.16, where sort/search_after support for hybrid query was
introduced.
Verified end-to-end locally (Linux container, real 3.7.0 → current
snapshot upgrade): both restart-upgrade and rolling-upgrade suites
pass, including the 2/3-upgraded mixed-cluster phase.
Related Issues
Resolves #950
Check List
--signoff.No CHANGELOG entry included — per CONTRIBUTING.md this falls under
"Adding, modifying, or fixing tests," which is explicitly listed as
not requiring one.
By submitting this pull request, I confirm that my contribution is
made under the terms of the Apache 2.0 license.