Skip to content

Conversation

@opensearch-trigger-bot
Copy link
Contributor

Backport eb1cbb8 from #15545.

This test assumed that the order of returned hits will match the order
of insertion. That's not generally true, especially if there was a
flush partway through, so documents end up in different segments.

This fixes it by explicitly sorting the returned documents to
guarantee that they come back in the correct order.

Also, we were getting a NPE when trying to output the failure message
because the expected value was intentionally null. I fixed that too.

Signed-off-by: Michael Froh <[email protected]>
(cherry picked from commit eb1cbb8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2024

❕ Gradle check result for 0e1a4c4: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.gateway.RecoveryFromGatewayIT.testShardStoreFetchMultiNodeMultiIndexesUsingBatchAction

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@codecov
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.68%. Comparing base (d000171) to head (0e1a4c4).
Report is 5 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #15634      +/-   ##
============================================
- Coverage     72.11%   71.68%   -0.44%     
+ Complexity    64396    63976     -420     
============================================
  Files          5244     5244              
  Lines        299367   299367              
  Branches      43575    43575              
============================================
- Hits         215901   214599    -1302     
- Misses        65723    66779    +1056     
- Partials      17743    17989     +246     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mch2 mch2 merged commit 7fdc07a into 2.x Sep 4, 2024
@mch2 mch2 deleted the backport/backport-15545-to-2.x branch September 4, 2024 07:07
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.

4 participants