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

fix: handle String error deserialization for ErrorCause object (#301) #476

Conversation

szczepanczykd
Copy link
Collaborator

@szczepanczykd szczepanczykd commented May 10, 2023

Description

Handling String error response from /_alias/not_existing_alias endpoint.
Simpler fix for PR:
#399

String error is tested with testGetNotExistingIndexAlias test.
ErrorCause Object in existing testGetSettingsNonExistentIndex

Issues Resolved

#301

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.

…earch-project#301)

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>
Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>
@reta
Copy link
Collaborator

reta commented May 10, 2023

Thanks a lot, @szczepanczykd !

Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @szczepanczykd!

@VachaShah VachaShah merged commit 897d0c1 into opensearch-project:main May 10, 2023
@VachaShah VachaShah added the backport 2.x Backport to 2.x branch label May 10, 2023
@szczepanczykd szczepanczykd deleted the feature/get-missing-alias-json-exception-301_v2 branch May 11, 2023 15:19
szczepanczykd added a commit to szczepanczykd/opensearch-java that referenced this pull request May 11, 2023
…earch-project#301) (opensearch-project#476)

* fix: handle String error deserialization for ErrorCause object (opensearch-project#301)

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

* update CHANGELOG.md

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

---------

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>
VachaShah pushed a commit that referenced this pull request May 11, 2023
…#476) (#478)

* fix: handle String error deserialization for ErrorCause object (#301)



* update CHANGELOG.md



---------

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>
dblock pushed a commit that referenced this pull request May 23, 2023
* fix: handle String error deserialization for ErrorCause object (#301) (#476)

* fix: handle String error deserialization for ErrorCause object (#301)

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

* update CHANGELOG.md

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

---------

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

* fix: change int type to long (#489)

* fix: change int type to long

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

* update CHANGELOG.md

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

* fix: change totalDataSetSizeInBytes to Long too

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

* fix: skip removing opensearch-observability index in AfterTest cleanup

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

---------

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.com>

---------

Signed-off-by: Dominik Szczepanczyk <szczepanczyk.dominik@gmail.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.

3 participants