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

Implement more-robust response success checking for all Opensearch requests. #42

Open
alexdunnjpl opened this issue Jul 26, 2023 · 2 comments
Labels

Comments

@alexdunnjpl
Copy link
Contributor

Checked for duplicates

No - I haven't checked

πŸ§‘β€πŸ”¬ User Persona(s)

dev

πŸ’ͺ Motivation

So that we can rely on the correctness of sweeper code and avoid (for example) long, repeated, looping queries.

πŸ“– Additional Details

Opensearch (v1, at least), returns HTTP200 for at-least-some types of request failures, including bulk updates.

With respect to the looping/hanging queries, I suspect that's due to expiration of scrolls (confirm whether scroll parameter is per-scroll, or per-query/lifetime). This should be easy to test by dropping the scroll window to 1min and adding 30sec delays. The second or third request should return HTTP200, but an error-indicative response, if it's the root cause of the 86% stall (see other issue, need to track it down).

Acceptance Criteria

All request failure conditionals test not only the HTTP status code, but also examine the structure of the returned response.

Ideally, this should be enclosed in a wrapper function.

βš™οΈ Engineering Details

No response

@alexdunnjpl alexdunnjpl added needs:triage requirement the current issue is a requirement labels Jul 26, 2023
@alexdunnjpl
Copy link
Contributor Author

alexdunnjpl commented Jul 26, 2023

Looks like this may only be a problem for the _bulk API
elastic/elasticsearch#41434

Actually no - it will happen in other contexts too (this is likely what @al-niessner was talking about - are CCS remotes equivalent to shards in this context?)
elastic/elasticsearch#18978

@jordanpadams

@alexdunnjpl
Copy link
Contributor Author

There's a really good chance this would be available as a side-effect of #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ToDo
Development

No branches or pull requests

2 participants