Class AbstractLegacyRecordBatchTest
java.lang.Object
org.apache.kafka.common.record.internal.AbstractLegacyRecordBatchTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidThe wrapper offset should be 0 in v0, but not in v1.voidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
AbstractLegacyRecordBatchTest
public AbstractLegacyRecordBatchTest()
-
-
Method Details
-
testSetLastOffsetCompressed
@Test public void testSetLastOffsetCompressed() -
testIterateCompressedRecordWithWrapperOffsetZero
@Test public void testIterateCompressedRecordWithWrapperOffsetZero()The wrapper offset should be 0 in v0, but not in v1. However, the latter worked by accident and some versions of librdkafka now depend on it. So we support 0 for compatibility reasons, but the recommendation is to set the wrapper offset to the relative offset of the last record in the batch. -
testInvalidWrapperOffsetV1
@Test public void testInvalidWrapperOffsetV1() -
testSetNoTimestampTypeNotAllowed
@Test public void testSetNoTimestampTypeNotAllowed() -
testSetLogAppendTimeNotAllowedV0
@Test public void testSetLogAppendTimeNotAllowedV0() -
testSetCreateTimeNotAllowedV0
@Test public void testSetCreateTimeNotAllowedV0() -
testSetPartitionLeaderEpochNotAllowedV0
@Test public void testSetPartitionLeaderEpochNotAllowedV0() -
testSetPartitionLeaderEpochNotAllowedV1
@Test public void testSetPartitionLeaderEpochNotAllowedV1() -
testSetLogAppendTimeV1
@Test public void testSetLogAppendTimeV1() -
testSetCreateTimeV1
@Test public void testSetCreateTimeV1() -
testZStdCompressionTypeWithV0OrV1
@Test public void testZStdCompressionTypeWithV0OrV1() -
testCompressedDeepDecodeRejectsForgedInnerSizeExceedingArrayLengthLimit
@Test public void testCompressedDeepDecodeRejectsForgedInnerSizeExceedingArrayLengthLimit() throws IOException- Throws:
IOException
-
testCompressedDeepDecodeEnforcesConfiguredMaxRecordBodySize
@Test public void testCompressedDeepDecodeEnforcesConfiguredMaxRecordBodySize()
-