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

Use timeout support of the IndexSearcher instead of custom implementation #4906

Closed
wants to merge 1 commit into from

Conversation

reta
Copy link
Collaborator

@reta reta commented Oct 25, 2022

Signed-off-by: Andriy Redko andriy.redko@aiven.io

Description

In Apache Lucene 9.3, the IndexSearcher has been enhanced to support timeouts. The OpenSearch uses custom implementation (based on cancellable runnable and timeout checker) in order to cancel search queries by timeout. For more context, check https://issues.apache.org/jira/browse/LUCENE-10151 please.

Issues Resolved

Closes #4487

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@reta reta added feature New feature or request v3.0.0 Issues and PRs related to version 3.0.0 v2.4.0 'Issues and PRs related to version v2.4.0' labels Oct 25, 2022
@reta reta force-pushed the issue-4487 branch 2 times, most recently from 582840a to 18da1fc Compare October 25, 2022 13:32
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

…tion

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@@ -43,6 +43,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Copy `build.sh` over from opensearch-build ([#4887](https://github.com/opensearch-project/OpenSearch/pull/4887))
- Add project health badges to the README.md ([#4843](https://github.com/opensearch-project/OpenSearch/pull/4843))
- Added changes for graceful node decommission ([#4586](https://github.com/opensearch-project/OpenSearch/pull/4586))
- Use timeout support of the IndexSearcher instead of custom implementation([#4906](https://github.com/opensearch-project/OpenSearch/pull/4906))
Copy link
Member

Choose a reason for hiding this comment

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

Probably a "skip-changelog" case now since this is a refactoring and not a functional change, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @andrross , have a loooong discussion with Apache Lucene team, will postpone this future a bit (for 2 reasons 1) there are a number of improvements in work 2) the way we use IndexSearcher does not allow us to use this feature as-is, without copying code

@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity. Remove stalled label or comment or this will be closed in 7 days.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Jul 10, 2023
@opensearch-trigger-bot
Copy link
Contributor

This PR was closed because it has been stalled for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request stalled Issues that have stalled v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Use timeout support of the IndexSearcher instead of custom implementation
3 participants