diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/support/AbstractStore.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/support/AbstractStore.java index a516379bcc3..18aea9f5636 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/support/AbstractStore.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/support/AbstractStore.java @@ -38,7 +38,7 @@ import java.io.FileNotFoundException; import java.io.IOException; import java.util.HashMap; import java.util.Map; -import java.util.zip.CRC32; +import java.util.zip.Adler32; import java.util.zip.Checksum; /** @@ -391,7 +391,10 @@ public abstract class AbstractStore extends AbstractIndexShardComponent implemen // and since we, in any case, always recover the segments files this.digest = null; } else { - this.digest = new CRC32(); +// this.digest = new CRC32(); + // adler is faster, and we compare on length as well, should be enough to check for difference + // between files + this.digest = new Adler32(); } } else { this.digest = null;