SnappyInputStream was sliding the window too early, leading to loss for long offsets
may be related to
@@ -140,7 +140,7 @@ public int read(final byte[] b, final int off, final int len) throws IOException
}
System.arraycopy(decompressBuf, readIndex, b, off, readable);
readIndex += readable;
- if (readIndex > blockSize) {
+ if (readIndex > 2 * blockSize) {
slideBuffer();
}
return readable;
