Class ProducerBatchTest
java.lang.Object
org.apache.kafka.clients.producer.internals.ProducerBatchTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidAProducerBatchconfigured using a timestamp preceding its create time is interpreted correctly as not expired byProducerBatch.hasReachedDeliveryTimeout(long, long).voidAProducerBatchconfigured using a timestamp preceding its create time is interpreted correctly * as not expired byProducerBatch.hasReachedDeliveryTimeout(long, long).voidvoidvoidvoidvoidvoidThis tests that leader is correctly maintained invalid input: '&' leader-change is correctly detected across retries of the batch.
-
Constructor Details
-
ProducerBatchTest
public ProducerBatchTest()
-
-
Method Details
-
testBatchAbort
-
testBatchCannotAbortTwice
-
testBatchCannotCompleteTwice
-
testSplitPreservesHeaders
@Test public void testSplitPreservesHeaders() -
testSplitPreservesMagicAndCompressionType
@Test public void testSplitPreservesMagicAndCompressionType() -
testBatchExpiration
@Test public void testBatchExpiration()AProducerBatchconfigured using a timestamp preceding its create time is interpreted correctly as not expired byProducerBatch.hasReachedDeliveryTimeout(long, long). -
testBatchExpirationAfterReenqueue
@Test public void testBatchExpirationAfterReenqueue()AProducerBatchconfigured using a timestamp preceding its create time is interpreted correctly * as not expired byProducerBatch.hasReachedDeliveryTimeout(long, long). -
testShouldNotAttemptAppendOnceRecordsBuilderIsClosedForAppends
@Test public void testShouldNotAttemptAppendOnceRecordsBuilderIsClosedForAppends() -
testCompleteExceptionallyWithRecordErrors
@Test public void testCompleteExceptionallyWithRecordErrors() -
testCompleteExceptionallyWithNullRecordErrors
@Test public void testCompleteExceptionallyWithNullRecordErrors() -
testWithLeaderChangesAcrossRetries
@Test public void testWithLeaderChangesAcrossRetries()This tests that leader is correctly maintained invalid input: '&' leader-change is correctly detected across retries of the batch. It does so by testing primarily testing methods 1. maybeUpdateLeaderEpoch 2. hasLeaderChangedForTheOngoingRetry
-