Flush instead of synced-flush inactive shards#49126
Merged
dnhatn merged 7 commits intoelastic:masterfrom Nov 22, 2019
Merged
Conversation
Collaborator
|
Pinging @elastic/es-distributed (:Distributed/Distributed) |
ywelsch
reviewed
Nov 15, 2019
Member
Author
Yes, we should keep this logic in 7.x. |
ywelsch
approved these changes
Nov 19, 2019
Contributor
ywelsch
left a comment
There was a problem hiding this comment.
LGTM. I think the flushing behavior should be backported to 7.x (and the sync-flush behavior kept in 7.x as well for non-soft-deletes indices)
henningandersen
approved these changes
Nov 21, 2019
server/src/main/java/org/elasticsearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/elasticsearch/indices/flush/FlushIT.java
Outdated
Show resolved
Hide resolved
Member
Author
|
Thanks @ywelsch and @henningandersen for reviewing. |
dnhatn
added a commit
that referenced
this pull request
Jan 23, 2020
If all nodes are on 7.6, we prefer to perform a normal flush instead of synced flush when a shard becomes inactive. Backport of #49126
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With peer recovery retention leases and sequence-number based replica allocation, a regular flush can speed up recovery as a synced-flush. With this change, we will flush instead of synced-flush when a shard becomes inactive.
Depends on #48430
Closes #31965