Skip to content

Fix failing tests - #2203

Open
vikhy-aws wants to merge 2 commits into
opensearch-project:mainfrom
vikhy-aws:main
Open

Fix failing tests#2203
vikhy-aws wants to merge 2 commits into
opensearch-project:mainfrom
vikhy-aws:main

Conversation

@vikhy-aws

Copy link
Copy Markdown
Collaborator

Description

The prepareMonitorIndexing() method searches SCHEDULED_JOBS_INDEX to
validate the monitor count limit. When a preceding test wipes all indices,
this search can fail with SearchPhaseExecutionException (all shards failed)
or IndexNotFoundException if the index hasn't been recreated yet.

Handle these cases gracefully by proceeding to index the monitor, since
an unavailable index implies zero existing monitors.

Related Issues

Resolves #2199

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

…nt check

The prepareMonitorIndexing() method searches SCHEDULED_JOBS_INDEX to
validate the monitor count limit. When a preceding test wipes all indices,
this search can fail with SearchPhaseExecutionException (all shards failed)
or IndexNotFoundException if the index hasn't been recreated yet.

Handle these cases gracefully by proceeding to index the monitor, since
an unavailable index implies zero existing monitors.

Resolves opensearch-project#2199

Signed-off-by: Vikhyat Khare <kvikhy@amazon.com>
Signed-off-by: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com>
Signed-off-by: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Integration Test Failed for alerting-3.8.0

1 participant