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

Fixing partial success results for msearch template #709

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

VachaShah
Copy link
Collaborator

Description

Same as title

Issues Resolved

Resolves #708

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.

Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
@VachaShah VachaShah force-pushed the msearchtemplate-issue branch from 3ddab57 to 4afc10a Compare November 5, 2023 07:20
@@ -62,14 +62,14 @@ private enum Kind {

private final ErrorCause error;

private final int status;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VachaShah hm I believe status should be always present, we may have an issue on the server side?

Copy link
Collaborator Author

@VachaShah VachaShah Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reta Yeah I dug through the server side and the server does not return status for msearch template requests. (see additional context section in #708).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think this is something that should be fixed on the server side? I am not sure if there is any history behind not setting status for mutli search templates 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for digging it in @VachaShah !

Do you think this is something that should be fixed on the server side?

I believe so, the status field should always be set by the server.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thank you @reta! I think we should still merge this fix though so that the users can use it with the current versions of OpenSearch, WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that's right, no objection

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I will raise an issue on OpenSearch to add the status field for multi search templates.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reta I opened an issue on the server for this: opensearch-project/OpenSearch#11133

@dblock dblock merged commit 99bb07a into opensearch-project:main Nov 6, 2023
44 checks passed
@dblock dblock added the backport 2.x Backport to 2.x branch label Nov 6, 2023
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-709-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 99bb07a0eefa4e1aededccf016f8b4c3f64e5c3d
# Push it to GitHub
git push --set-upstream origin backport/backport-709-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-709-to-2.x.

VachaShah added a commit to VachaShah/opensearch-java that referenced this pull request Nov 6, 2023
…ct#709)

* Fixing partial success results for msearch template

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Adding changelog

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Spotless apply

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
VachaShah added a commit to VachaShah/opensearch-java that referenced this pull request Nov 6, 2023
…ct#709)

* Fixing partial success results for msearch template

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Adding changelog

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Spotless apply

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
reta pushed a commit that referenced this pull request Nov 7, 2023
* Fixing partial success results for msearch template



* Adding changelog



* Spotless apply



---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
VachaShah added a commit to VachaShah/opensearch-java that referenced this pull request Nov 13, 2023
…ct#709) (opensearch-project#714)

* Fixing partial success results for msearch template

* Adding changelog

* Spotless apply

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
dblock pushed a commit that referenced this pull request Nov 14, 2023
* Fixing partial success results for msearch template

* Adding changelog

* Spotless apply

---------

Signed-off-by: Vacha Shah <vachshah@amazon.com>
@BrendonFaleiro BrendonFaleiro mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] MultiSearchTemplate partial success response is broken
3 participants