Skip to content

Conversation

@s1monw
Copy link
Contributor

@s1monw s1monw commented May 14, 2018

Lucene IW checks for pending deletes before it starts. In the
split / shrink case we might delete files which can cause this
check to trip. Since we know that these files are not subject for
reusal we can use a private directory instance for this operation
to prevent unnecessary busy waiting but still keep the checks for
subsequent useage.

Closes #30416

Lucene IW checks for pending deletes before it starts. In the
split / shrink case we might delete files which can cause this
check to trip. Since we know that these files are not subject for
reusal we can use a private directory instance for this operation
to prevent unnecessary busy waiting but still keep the checks for
subsequent useage.

Closes elastic#30416
@s1monw s1monw added >bug :Distributed Indexing/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. v7.0.0 v6.4.0 labels May 14, 2018
@s1monw s1monw requested review from bleskes, jasontedor and jpountz May 14, 2018 10:29
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

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

It works for me, but I think I liked your idea of wrapping our directories in order to disable checkPendingDeletes better since it avoids the creation of multiple directories over the same path.

@s1monw
Copy link
Contributor Author

s1monw commented May 14, 2018

superseded by #30571

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

Labels

>bug :Distributed Indexing/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. >non-issue v6.4.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants