Skip to content

Improve timeout error for background search#4899

Closed
Swiddis wants to merge 2 commits into
opensearch-project:mainfrom
Swiddis:bugfix/timeout-bg-err
Closed

Improve timeout error for background search#4899
Swiddis wants to merge 2 commits into
opensearch-project:mainfrom
Swiddis:bugfix/timeout-bg-err

Conversation

@Swiddis

@Swiddis Swiddis commented Dec 3, 2025

Copy link
Copy Markdown
Collaborator

Description

Just improves the error message if a timeout happens during the background search operation.

Before:

There was internal problem at backend - [RuntimeException] - java.sql.SQLException: exception while executing query: Failed to fetch data from the index: the background task failed or interrupted.\n Inner error: null

After:

Error occurred in OpenSearch engine: java.lang.InterruptedException: Execution of the index search timed out. Increase the timeout via the `ppl.query.timeout` setting.

Related Issues

N/A

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • New PPL command checklist all confirmed.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff or -s.
  • 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.

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@Swiddis Swiddis changed the title Improve timeout err for BG search Improve timeout error for background search Dec 5, 2025
@Swiddis Swiddis closed this Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant