Class LazyDownConversionRecordsTest
java.lang.Object
org.apache.kafka.common.record.internal.LazyDownConversionRecordsTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtestConversion(org.apache.kafka.common.record.internal.CompressionType compressionType, byte toMagic, boolean overflow) Test the lazy down-conversion path.voidTest the lazy down-conversion path in the presence of commit markers.
-
Constructor Details
-
LazyDownConversionRecordsTest
public LazyDownConversionRecordsTest()
-
-
Method Details
-
testConversionOfCommitMarker
Test the lazy down-conversion path in the presence of commit markers. When converting to V0 or V1, these batches are dropped. If there happen to be no more batches left to convert, we must get an overflow message batch after conversion.- Throws:
IOException
-
testConversion
@ParameterizedTest @MethodSource("parameters") public void testConversion(org.apache.kafka.common.record.internal.CompressionType compressionType, byte toMagic, boolean overflow) throws IOException Test the lazy down-conversion path. If `overflow` is true, the number of bytes we want to convert is much larger than the number of bytes we get after conversion. This causes overflow message batch(es) to be appended towards the end of the converted output.- Throws:
IOException
-