diff --git a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/writer/impl/VarByteChunkForwardIndexWriterV4.java b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/writer/impl/VarByteChunkForwardIndexWriterV4.java index 332c52d0c59f..f685890e0fdc 100644 --- a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/writer/impl/VarByteChunkForwardIndexWriterV4.java +++ b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/writer/impl/VarByteChunkForwardIndexWriterV4.java @@ -136,7 +136,8 @@ public void putString(String string) { @Override public void putBytes(byte[] bytes) { - Preconditions.checkState(_chunkOffset < (1L << 32), "exceeded 4GB of compressed chunks"); + Preconditions.checkState(_chunkOffset < (1L << 32), + "exceeded 4GB of compressed chunks for: " + _dataBuffer.getName()); int sizeRequired = Integer.BYTES + bytes.length; if (_chunkBuffer.position() > _chunkBuffer.capacity() - sizeRequired) { flushChunk();