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

properly handle biri.Error #163

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

arnitolog
Copy link

fixes #162

Copy link
Collaborator

@gregfurman gregfurman left a comment

Choose a reason for hiding this comment

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

Hey! Thanks for the contribution and quick fix for this. Any chance you have capacity to add an integration test to the opensearch suite for this case?

There are 2 deletion tests but none test this case you've encountered of trying to delete a non-existent document AFAIK. See opensearch/integration_test.go.

@arnitolog
Copy link
Author

arnitolog commented Nov 14, 2024

@gregfurman, I've added an integration test for this case. Please take a look

Comment on lines 479 to 480
var respCode int
respCode = get.StatusCode
Copy link
Collaborator

Choose a reason for hiding this comment

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

Linter doesn't like this one.

Suggested change
var respCode int
respCode = get.StatusCode
respCode := get.StatusCode

@gregfurman
Copy link
Collaborator

Awesome! Thanks for adding that test.

Your golangci-lint step is failing so just run make fmt && make lint and happy to approve 😄

I added a suggestion that you can also accept that should fix it.

@arnitolog
Copy link
Author

@gregfurman , fixed

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.

Opensearch output fails when deleting non-existing document
2 participants