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 a private Directory for split / shrink #30567

Closed
wants to merge 3 commits into from

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/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
@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/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.

None yet

5 participants