Skip to content

Commit

Permalink
remove checks introduced in #12945 that is backward in compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperjiaguo committed Sep 18, 2024
1 parent 21ff6bf commit 7543dcd
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ public ForwardIndexConfig(@Nullable Boolean disabled, @Nullable CompressionCodec
_rawIndexWriterVersion = rawIndexWriterVersion == null ? DEFAULT_RAW_WRITER_VERSION : rawIndexWriterVersion;
_compressionCodec = compressionCodec;

if (targetMaxChunkSize != null && !(_deriveNumDocsPerChunk || _rawIndexWriterVersion == 4)) {
throw new IllegalStateException(
"targetMaxChunkSize should only be used when deriveNumDocsPerChunk is true or rawIndexWriterVersion is 4");
}
_targetMaxChunkSizeBytes = targetMaxChunkSize == null ? DEFAULT_TARGET_MAX_CHUNK_SIZE_BYTES
: (int) DataSizeUtils.toBytes(targetMaxChunkSize);
_targetMaxChunkSize =
Expand Down

0 comments on commit 7543dcd

Please sign in to comment.