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
Add BWC layer to .si / segments_N hashing to identify segments accurately #7436
Merged
Conversation
This file contains 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
@imotov can you take a look? |
@@ -47,6 +48,7 @@ | |||
import org.elasticsearch.indices.recovery.RecoveryState; | |||
import org.elasticsearch.repositories.RepositoryName; | |||
|
|||
import java.io.ByteArrayInputStream; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed
Left a few minor comments. Otherwise LGTM. |
@imotov updated the PR |
LGTM |
Due to additional safety added in elastic#7351 we compute now a strong hash for .si and segments_N files which are compared during snapshot / restore. Old snapshots don't have this hash which can cause unnecessary copying of large amount of data. This commit adds the ability to fetch this hash from the blob store if needed. Closes elastic#7434
clintongormley
changed the title
[SNAPSHOT] Add BWC layer to .si / segments_N hashing
Snapshot/Restore: Add BWC layer to .si / segments_N hashing to identify segments accurately
Sep 10, 2014
clintongormley
changed the title
Snapshot/Restore: Add BWC layer to .si / segments_N hashing to identify segments accurately
Resiliency: Add BWC layer to .si / segments_N hashing to identify segments accurately
Sep 10, 2014
clintongormley
changed the title
Resiliency: Add BWC layer to .si / segments_N hashing to identify segments accurately
Add BWC layer to .si / segments_N hashing to identify segments accurately
Jun 7, 2015
clintongormley
added
the
:Distributed/Store
Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label.
label
Jun 7, 2015
clintongormley
added
:Distributed/Engine
Anything around managing Lucene and the Translog in an open shard.
and removed
:Distributed/Store
Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label.
labels
Feb 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Distributed/Engine
Anything around managing Lucene and the Translog in an open shard.
resiliency
v1.4.0.Beta1
v2.0.0-beta1
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.
Due to additional safety added in #7351 we compute now a strong hash for
.si and segments_N files which are compared during snapshot / restore.
Old snapshots don't have this hash which can cause unnecessary copying
of large amount of data. This commit adds the ability to fetch this
hash from the blob store if needed.
Closes #7434