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
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion record_indexer/index_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ def delete_by_query(index: str, data: dict[str, Any]):
auth=settings.get_auth(),
verify=settings.verify_certs()
)
if not (200 <= r.status_code <= 299):
if not (200 <= r.status_code <= 299 or r.status_code == 409):
print_opensearch_error(r, url)
r.raise_for_status()
if r.status_code == 409:
print("Ignoring 409 Conflict Error Response")
return r


Expand Down
Loading