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

Don't raise 409 errors from OpenSearch #1119

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amywieliczka
Copy link
Collaborator

@amywieliczka amywieliczka commented Oct 1, 2024

Resolves #1095

Typically we see a conflict because OpenSearch is still trying to update documents at the time that we issue a query for all outdated documents, so we think there are some outdated documents when in reality, some documents just haven't finished updating yet.

I think it's safe to ignore a 409, but I'd like feedback on doing so. In both places that delete_by_query is called, the response is printed directly following, so it will be in the logs even if we do get a 409.

@amywieliczka amywieliczka self-assigned this Oct 1, 2024
@amywieliczka amywieliczka marked this pull request as draft October 7, 2024 19:02
@amywieliczka
Copy link
Collaborator Author

Converting this back to a draft - it is very odd that we're seeing this 409 behavior because we have refresh=True on the bulk update request.

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