Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] [Bugfix] Fix IllegalArgumentException thrown when creating a PIT #17380

Merged
merged 3 commits into from
Feb 18, 2025

Conversation

peteralfonsi
Copy link
Contributor

Description

Backport #16781 to 2.x.

Check List

  • Functionality includes testing.
  • [N/A] API changes companion pull request created, if applicable.
  • [N/A] Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…nsearch-project#16781)

* fix create_pit enum bug

Signed-off-by: Peter Alfonsi <[email protected]>

* changelog

Signed-off-by: Peter Alfonsi <[email protected]>

* Fix SearchResponse XContent

Signed-off-by: Peter Alfonsi <[email protected]>

* Addressed David's comments

Signed-off-by: Peter Alfonsi <[email protected]>

* rerun gradle

Signed-off-by: Peter Alfonsi <[email protected]>

* Addressed andrross's comment

Signed-off-by: Peter Alfonsi <[email protected]>

* Revert "Addressed andrross's comment"

This reverts commit 49fec57.

Signed-off-by: Peter Alfonsi <[email protected]>

* Revert "Addressed David's comments"

This reverts commit a41f9be.

Signed-off-by: Peter Alfonsi <[email protected]>

* Revert "Fix SearchResponse XContent"

This reverts commit ea30484.

Signed-off-by: Peter Alfonsi <[email protected]>

* Revert "fix create_pit enum bug"

This reverts commit 0c9110d.

Signed-off-by: Peter Alfonsi <[email protected]>

* Fix create_pit bug with catch-all search phase name

Signed-off-by: Peter Alfonsi <[email protected]>

* switch to new optional method

Signed-off-by: Peter Alfonsi <[email protected]>

* rerun gradle

Signed-off-by: Peter Alfonsi <[email protected]>

* Update server/src/main/java/org/opensearch/action/search/SearchPhase.java

Co-authored-by: Andrew Ross <[email protected]>
Signed-off-by: Peter Alfonsi <[email protected]>

---------

Signed-off-by: Peter Alfonsi <[email protected]>
Signed-off-by: Peter Alfonsi <[email protected]>
Co-authored-by: Peter Alfonsi <[email protected]>
Co-authored-by: Andrew Ross <[email protected]>
(cherry picked from commit 56825f6)
Signed-off-by: Peter Alfonsi <[email protected]>
Copy link
Contributor

❌ Gradle check result for b4ce8f1: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@peteralfonsi
Copy link
Contributor Author

Flaky tests (timeout): #14331, #17364

Signed-off-by: Peter Alfonsi <[email protected]>
Copy link
Contributor

✅ Gradle check result for 4ab0db0: SUCCESS

Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.04%. Comparing base (6698ccc) to head (6d12833).
Report is 2 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #17380      +/-   ##
============================================
+ Coverage     71.86%   72.04%   +0.17%     
- Complexity    65927    66001      +74     
============================================
  Files          5341     5341              
  Lines        307151   307186      +35     
  Branches      44825    44830       +5     
============================================
+ Hits         220748   221315     +567     
+ Misses        67976    67381     -595     
- Partials      18427    18490      +63     

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

@peterzhuamazon
Copy link
Member

Thanks @peteralfonsi ,

Hi @andrross shall we approve and merge this backport?

Thanks!

Copy link
Contributor

❕ Gradle check result for 6d12833: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testStartReplicationListenerSuccess

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants