Skip to content

Lucene: replace ExecutorService with StructuredTaskScope #2518

Description

@imotov

In order to achieve concurrency, we have introduced instantiation of ExecutorService in several places in cuvs-lucene. The current pattern of using the ExecutorService doesn't handle releasing resources correctly and needs to be replaced. JDK 25 introduces a class that does exactly what we need here: StructuredTaskScope. So, after we move to JDK 25, we should address this issue.

Depends on #2517

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

LucenebugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions