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

Handle missing Opensearch indices #3584

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

dbutenhof
Copy link
Member

PBENCH-1308

An Opensearch-based query like /api/v1/datasets/{dataset}/values/iterations requires that the {dataset} have at least one result-data-sample indexed document. However it doesn't actually check that this is true. This leads to an Opensearch query with a bad URL fragment causing an Opensearch error we report as an internal server error.

This change detects early that the dataset has no indices for the required index root name, and fails with a meaningful message.

PBENCH-1308

An Opensearch-based query like `/api/v1/datasets/{dataset}/values/iterations`
requires that the `{dataset}` have at least one `result-data-sample` indexed
document. However it doesn't actually check that this is true. This leads to
an Opensearch query with a bad URL fragment causing an Opensearch error we
report as an internal server error.

This change detects early that the dataset has no indices for the required
index root name, and fails with a meaningful message.
@dbutenhof dbutenhof added bug Server Indexing API Of and relating to application programming interfaces to services and functions labels Dec 8, 2023
@dbutenhof dbutenhof requested a review from webbnh December 8, 2023 15:01
@dbutenhof dbutenhof self-assigned this Dec 8, 2023
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

Looks good, unless you like my suggestion better than yours.

@dbutenhof dbutenhof merged commit 070b170 into distributed-system-analysis:main Dec 8, 2023
3 checks passed
@dbutenhof dbutenhof deleted the slash branch December 8, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Of and relating to application programming interfaces to services and functions bug Indexing Server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants