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

Add fine-grained error handling; misc bug fixes #598

Merged
merged 8 commits into from
Feb 6, 2025

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Feb 3, 2025

Description

Surfaces processor-level errors for both ingest and search flows. If errors are found, surface them in 2 places:

  1. the Errors tab in the Inspector, with details about which processor(s) have failed, and why.
  2. in the form, there is an error icon next to the processor, and on hover, displays the same error message

Ingest:
Adds another round of checking before data ingestion using the verbose parameters from the simulate pipeline API: https://opensearch.org/docs/latest/ingest-pipelines/simulate-ingest/#query-parameters

Search:
If "with search pipeline" is selected, pass verbose_pipeline=true added parameter to the search API call to fetch processor-level results, similar to ingest. opensearch-project/OpenSearch#16843

Other improvements:

  • updates several processors to have more of the error-state-related params.
  • fixes bug of search pipeline option not selectable from ingest context, even if it exists
  • handles invalid ui_metadata types by still displaying them in the workflow list; adds check on importing as well
  • fixes bug of invalid index name when adding/removing ingest pipeline
  • adds few NPE checks

Demo video, showing the errors propagated on both ingest and search for different processor types:

screen-capture.18.webm

Issues Resolved

Closes #571

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
@ohltyler ohltyler changed the title Add fine-grained error handling (ingest) Add fine-grained error handling Feb 4, 2025
…side

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
@ohltyler ohltyler changed the title Add fine-grained error handling Add fine-grained error handling; misc bug fixes Feb 4, 2025
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
@ohltyler
Copy link
Member Author

ohltyler commented Feb 5, 2025

@ohltyler ohltyler marked this pull request as ready for review February 5, 2025 23:39
Copy link
Collaborator

@saimedhi saimedhi left a comment

Choose a reason for hiding this comment

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

LGTM

@ohltyler ohltyler merged commit c9dd036 into opensearch-project:main Feb 6, 2025
6 of 7 checks passed
@ohltyler ohltyler deleted the simulate-verbose branch February 6, 2025 15:35
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 6, 2025
(cherry picked from commit c9dd036)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ohltyler pushed a commit that referenced this pull request Feb 6, 2025
(cherry picked from commit c9dd036)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Integrate with latest backend enhancements
2 participants