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

Deprecate IndexSearcher#getExecutor #12578

Merged
merged 4 commits into from Sep 21, 2023

Conversation

javanna
Copy link
Contributor

@javanna javanna commented Sep 20, 2023

We have recently introduced a TaskExecutor abstraction, which is meant to be used to execute concurrent tasks using the executor provided to the IndexSearcher constructor. All concurrenct tasks should be executed using the TaskExecutor, and there shoul be no reason to retrieve the Executor directly from the IndexSearcher.

We have recently introduced a TaskExecutor abstraction, which is meant
to be used to execute concurrent tasks using the executor provided to
the IndexSearcher constructor. All concurrenct tasks should be executed
using the TaskExecutor, and there shoul be no reason to retrieve the
Executor directly from the IndexSearcher.
Copy link
Contributor

@uschindler uschindler left a comment

Choose a reason for hiding this comment

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

I assume you will remove the deprecated method in main branch and add an entry to the MIGRATE.txt there?

@javanna
Copy link
Contributor Author

javanna commented Sep 20, 2023

I assume you will remove the deprecated method in main branch and add an entry to the MIGRATE.txt there?

Yes. but I'll open a PR against main to have people double check the change. You'll get summoned there too ;)

@javanna javanna added this to the 9.9.0 milestone Sep 20, 2023
@javanna javanna merged commit 29ee89f into apache:branch_9x Sep 21, 2023
2 checks passed
javanna added a commit that referenced this pull request Sep 21, 2023
Use getTaskExecutor instead. This is important to enforce tracking of
tasks that run in each thread.

Relates to #12578
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.

None yet

2 participants