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

sync before trimUnreferencedReaders to improve index preformance #47790

Merged
merged 12 commits into from
Oct 9, 2019

Conversation

dengweisysu
Copy link
Contributor

close #46201 and see more discussion in #46203
65770379-8c683a00-e168-11e9-836f-1f87d6c10f5c

@ywelsch ywelsch added :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >enhancement v7.4.1 v7.5.0 v8.0.0 labels Oct 9, 2019
@elasticmachine
Copy link
Collaborator

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

@ywelsch
Copy link
Contributor

ywelsch commented Oct 9, 2019

@elasticmachine ok to test

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM.

Thanks @dengweisysu , a lot of effort went behind this change, highly appreciated.

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. Thanks @dengweisysu :)

@dnhatn dnhatn merged commit f749bac into elastic:master Oct 9, 2019
dnhatn pushed a commit that referenced this pull request Oct 9, 2019
This commit is similar to the optimization made in #45765. With this
change, we fsync most of the data of the current generation without
holding writeLock when trimming unreferenced readers.

Relates #45765
dnhatn pushed a commit that referenced this pull request Oct 9, 2019
This commit is similar to the optimization made in #45765. With this
change, we fsync most of the data of the current generation without
holding writeLock when trimming unreferenced readers.

Relates #45765
@jakelandis jakelandis removed the v8.0.0 label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >enhancement v7.4.1 v7.5.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize translog writing by move sync outside writeLock in trimUnreferencedReaders
6 participants