Skip to content

Commit f3171d8

Browse files
authored
Revert "Lower zstd blockDocCount for best_speed from 128 to 96 (#112098)" (#112911)
This reverts commit 1d7e7bd.
1 parent 6975e85 commit f3171d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/index/codec/zstd/Zstd814StoredFieldsFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public final class Zstd814StoredFieldsFormat extends Lucene90CompressingStoredFi
4848
public static final String MODE_KEY = Zstd814StoredFieldsFormat.class.getSimpleName() + ".mode";
4949

5050
public enum Mode {
51-
BEST_SPEED(0, BEST_SPEED_BLOCK_SIZE, 96),
51+
BEST_SPEED(0, BEST_SPEED_BLOCK_SIZE, 128),
5252
BEST_COMPRESSION(3, BEST_COMPRESSION_BLOCK_SIZE, 2048);
5353

5454
final int level, blockSizeInBytes, blockDocCount;

server/src/test/java/org/elasticsearch/index/codec/CodecTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void testDefault() throws Exception {
5959
assumeTrue("Only when zstd_stored_fields feature flag is enabled", CodecService.ZSTD_STORED_FIELDS_FEATURE_FLAG.isEnabled());
6060
Codec codec = createCodecService().codec("default");
6161
assertEquals(
62-
"Zstd814StoredFieldsFormat(compressionMode=ZSTD(level=0), chunkSize=14336, maxDocsPerChunk=96, blockShift=10)",
62+
"Zstd814StoredFieldsFormat(compressionMode=ZSTD(level=0), chunkSize=14336, maxDocsPerChunk=128, blockShift=10)",
6363
codec.storedFieldsFormat().toString()
6464
);
6565
}

0 commit comments

Comments
 (0)