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

Separate translog from index deletion conditions #52556

Merged
merged 2 commits into from
Feb 20, 2020

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Feb 20, 2020

Separates the translog from the index deletion conditions (allowing the translog to be cleaned up more eagerly), and avoids taking the write lock on the translog if no clean-up is actually necessary.

@ywelsch ywelsch added >enhancement :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. v8.0.0 v7.7.0 labels Feb 20, 2020
@ywelsch ywelsch requested a review from dnhatn February 20, 2020 09:02
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Engine)

Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM :)

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

LGTM

@ywelsch ywelsch merged commit 16af047 into elastic:master Feb 20, 2020
dnhatn added a commit that referenced this pull request Feb 20, 2020
Adjusts the assertion as we trim translog more eagerly since #52556.

Relates #52556
Closes #52148
ywelsch pushed a commit that referenced this pull request Feb 21, 2020
Adjusts the assertion as we might eagerly clean up translog during resync since #52556

Relates #52556
Closes #52598
dnhatn pushed a commit to dnhatn/elasticsearch that referenced this pull request Feb 26, 2020
Separates the translog from the index deletion conditions (allowing the translog to be cleaned
up more eagerly), and avoids taking the write lock on the translog if no clean-up is actually
necessary.
dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Feb 26, 2020
Adjusts the assertion as we might eagerly clean up translog during resync since elastic#52556

Relates elastic#52556
Closes elastic#52598
dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Feb 26, 2020
Adjusts the assertion as we trim translog more eagerly since elastic#52556.

Relates elastic#52556
Closes elastic#52148
dnhatn pushed a commit that referenced this pull request Feb 26, 2020
Separates the translog from the index deletion conditions (allowing the translog to be cleaned
up more eagerly), and avoids taking the write lock on the translog if no clean-up is actually
necessary.
dnhatn added a commit that referenced this pull request Feb 26, 2020
Adjusts the assertion as we might eagerly clean up translog during resync since #52556

Relates #52556
Closes #52598
dnhatn added a commit that referenced this pull request Feb 26, 2020
Adjusts the assertion as we trim translog more eagerly since #52556.

Relates #52556
Closes #52148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >enhancement v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants