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

Add BWC layer to .si / segments_N hashing to identify segments accurately #7436

Merged
merged 1 commit into from Aug 26, 2014

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Aug 25, 2014

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

@s1monw s1monw added the review label Aug 25, 2014
@s1monw
Copy link
Contributor Author

s1monw commented Aug 25, 2014

@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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not needed

@imotov
Copy link
Contributor

imotov commented Aug 26, 2014

Left a few minor comments. Otherwise LGTM.

@s1monw
Copy link
Contributor Author

s1monw commented Aug 26, 2014

@imotov updated the PR

@imotov
Copy link
Contributor

imotov commented Aug 26, 2014

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
@s1monw s1monw merged commit c63626b into elastic:master Aug 26, 2014
@s1monw s1monw deleted the issues/7434 branch August 26, 2014 13:38
@clintongormley 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 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 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 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 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Snapshot/Restore: Add BWC layer to .si / segments_N hashing to identify segments accurately
3 participants