Class FetchCollectorTest

java.lang.Object
org.apache.kafka.clients.consumer.internals.FetchCollectorTest

public class FetchCollectorTest extends Object
This tests the FetchCollector functionality in addition to what FetcherTest tests during the course of its tests.
  • Constructor Details

    • FetchCollectorTest

      public FetchCollectorTest()
  • Method Details

    • testFetchNormal

      @Test public void testFetchNormal()
    • testPositionUpdatedBeforeDrainOnExhaustedFetch

      @Test public void testPositionUpdatedBeforeDrainOnExhaustedFetch()
    • testFetchWithReadReplica

      @Test public void testFetchWithReadReplica()
    • testNoResultsIfInitializing

      @Test public void testNoResultsIfInitializing()
    • testErrorInInitialize

      @ParameterizedTest @MethodSource("testErrorInInitializeSource") public void testErrorInInitialize(int recordCount, RuntimeException expectedException)
    • testFetchingPausedPartitionsYieldsNoRecords

      @Test public void testFetchingPausedPartitionsYieldsNoRecords()
    • testFetchWithMetadataRefreshErrors

      @ParameterizedTest @MethodSource("testFetchWithMetadataRefreshErrorsSource") public void testFetchWithMetadataRefreshErrors(org.apache.kafka.common.protocol.Errors error)
    • testFetchWithOffsetOutOfRange

      @Test public void testFetchWithOffsetOutOfRange()
    • testFetchWithOffsetOutOfRangeWithPreferredReadReplica

      @Test public void testFetchWithOffsetOutOfRangeWithPreferredReadReplica()
    • testFetchWithTopicAuthorizationFailed

      @Test public void testFetchWithTopicAuthorizationFailed()
    • testFetchWithUnknownLeaderEpoch

      @Test public void testFetchWithUnknownLeaderEpoch()
    • testFetchWithUnknownServerError

      @Test public void testFetchWithUnknownServerError()
    • testFetchWithCorruptMessage

      @Test public void testFetchWithCorruptMessage()
    • testFetchWithOtherErrors

      @ParameterizedTest @MethodSource("testFetchWithOtherErrorsSource") public void testFetchWithOtherErrors(org.apache.kafka.common.protocol.Errors error)
    • testCollectFetchInitializationWithNullPosition

      @Test public void testCollectFetchInitializationWithNullPosition()
    • testCollectFetchInitializationWithUpdateHighWatermarkOnNotAssignedPartition

      @Test public void testCollectFetchInitializationWithUpdateHighWatermarkOnNotAssignedPartition()
    • testCollectFetchInitializationWithUpdateLogStartOffsetOnNotAssignedPartition

      @Test public void testCollectFetchInitializationWithUpdateLogStartOffsetOnNotAssignedPartition()
    • testCollectFetchInitializationWithUpdateLastStableOffsetOnNotAssignedPartition

      @Test public void testCollectFetchInitializationWithUpdateLastStableOffsetOnNotAssignedPartition()
    • testCollectFetchInitializationWithUpdatePreferredReplicaOnNotAssignedPartition

      @Test public void testCollectFetchInitializationWithUpdatePreferredReplicaOnNotAssignedPartition()
    • testCollectFetchInitializationOffsetOutOfRangeErrorWithNullPosition

      @Test public void testCollectFetchInitializationOffsetOutOfRangeErrorWithNullPosition()
    • testCollectFetchInitializationOffsetOutOfRangeErrorWithOffsetReset

      @Test public void testCollectFetchInitializationOffsetOutOfRangeErrorWithOffsetReset()
    • testReadCommittedWithAbortedTransaction

      @Test public void testReadCommittedWithAbortedTransaction()