Skip to content

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Oct 2, 2025

Description

Adds a check to set a default value for the redux agents field, if there is exceptions during search agents API call, by adding checks in 2 places:

  1. Server-side, by properly catching the known index_not_found_exception which can occur on init clusters during plugin search calls, when the system indices have not been created yet. This is duplicate logic that is already in the search workflows API call, copied over to the search agents call. Also copied to the search models & search connectors calls.
  2. Client-side, by safely getting properties from such agents redux store var, if it is for some reason set to an undefined value.

Note, these issues are only arising on docker-container clusters. Unable to reproduce in a dev environment. Something is causing API failures to OpenSearch to not be registered as rejected in the redux store, leading to the store variables being corrupted and set to these unsafe / empty values, like undefined. Tracking issue here: #788

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.

@ohltyler ohltyler merged commit 081222a into opensearch-project:main Oct 2, 2025
10 of 14 checks passed
@ohltyler ohltyler deleted the npe-2 branch October 2, 2025 17:21
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 2, 2025
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 081222a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ohltyler pushed a commit that referenced this pull request Oct 2, 2025
(cherry picked from commit 081222a)

Signed-off-by: Tyler Ohlsen <[email protected]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants