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

Ensure pending merges are updated on segment flushes #5780

Merged
merged 2 commits into from Apr 12, 2014

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Apr 11, 2014

Due to the default of `async_merge` to `true` we never run
the merge policy on a segment flush which prevented the
pending merges from being updated and that caused actual
pending merges not to contribute to the merge decision.

This commit removes the `index.async.merge` setting. The setting is 
actually misleading since we take care of this on a different level 
(the merge scheduler) since 1.1.

This commit also adds an additional check when to run a refresh
since solely relying on the dirty flag might leave merges un-refreshed
which can cause search slowdowns and higher memory consumption.

Closes #5779

@kimchy
Copy link
Member

kimchy commented Apr 11, 2014

LGTM, +1 on back porting to 1.1 and 1.x branch. I don't think we should backport to 1.0, since in 1.0 we didn't have the "enabled" merge scheduler support, right?

Due to the default of `async_merge` to `true` we never run
the merge policy on a segment flush which prevented the
pending merges from being updated and that caused actual
pending merges not to contribute to the merge decision.

This commit also removes the `index.async.merge` setting is actually
misleading since we take care of merges not being excecuted on the
indexing threads  on a different level (the merge scheduler) since 1.1.

This commit also adds an additional check when to run a refresh
since soely relying on the dirty flag might leave merges un-refreshed
which can cause search slowdowns and higher memory consumption.

Closes elastic#5779
@s1monw s1monw merged commit efb7499 into elastic:master Apr 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merges might not be picked up when they are ready
3 participants