Class OffsetFetcherTest
java.lang.Object
org.apache.kafka.clients.consumer.internals.OffsetFetcherTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup()voidteardown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMake sure the client behaves appropriately when receiving an exception for unavailable offsetsvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidTest for KAFKA-20312: when regroupPartitionMapByNode sees a partition with null leader (e.g.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
OffsetFetcherTest
public OffsetFetcherTest()
-
-
Method Details
-
setup
@BeforeEach public void setup() -
teardown
-
testUpdateFetchPositionNoOpWithPositionSet
@Test public void testUpdateFetchPositionNoOpWithPositionSet() -
testUpdateFetchPositionResetToDefaultOffset
@Test public void testUpdateFetchPositionResetToDefaultOffset() -
testUpdateFetchPositionResetToLatestOffset
@Test public void testUpdateFetchPositionResetToLatestOffset() -
testUpdateFetchPositionResetToDurationOffset
@Test public void testUpdateFetchPositionResetToDurationOffset() -
testFetchOffsetErrors
@Test public void testFetchOffsetErrors()Make sure the client behaves appropriately when receiving an exception for unavailable offsets -
testListOffsetSendsReadUncommitted
@Test public void testListOffsetSendsReadUncommitted() -
testListOffsetSendsReadCommitted
@Test public void testListOffsetSendsReadCommitted() -
testresetPositionsSkipsBlackedOutConnections
@Test public void testresetPositionsSkipsBlackedOutConnections() -
testUpdateFetchPositionResetToEarliestOffset
@Test public void testUpdateFetchPositionResetToEarliestOffset() -
testresetPositionsMetadataRefresh
@Test public void testresetPositionsMetadataRefresh() -
testResetPositionsMetadataRefreshWhenLeaderBecomesUnknownDuringRegroup
@Test public void testResetPositionsMetadataRefreshWhenLeaderBecomesUnknownDuringRegroup()Test for KAFKA-20312: when regroupPartitionMapByNode sees a partition with null leader (e.g. leader was known when building partitionDataMap but metadata changed before regroup), we should not throw NPE; partition is skipped and retried after backoff. -
testListOffsetNoUpdateMissingEpoch
@Test public void testListOffsetNoUpdateMissingEpoch() -
testListOffsetUpdateEpoch
@Test public void testListOffsetUpdateEpoch() -
testUpdateFetchPositionDisconnect
@Test public void testUpdateFetchPositionDisconnect() -
testAssignmentChangeWithInFlightReset
@Test public void testAssignmentChangeWithInFlightReset() -
testSeekWithInFlightReset
@Test public void testSeekWithInFlightReset() -
testEarlierOffsetResetArrivesLate
@Test public void testEarlierOffsetResetArrivesLate() -
testChangeResetWithInFlightReset
@Test public void testChangeResetWithInFlightReset() -
testIdempotentResetWithInFlightReset
@Test public void testIdempotentResetWithInFlightReset() -
testResetOffsetsAuthorizationFailure
@Test public void testResetOffsetsAuthorizationFailure() -
testFetchingPendingPartitionsBeforeAndAfterSubscriptionReset
@Test public void testFetchingPendingPartitionsBeforeAndAfterSubscriptionReset() -
testUpdateFetchPositionOfPausedPartitionsRequiringOffsetReset
@Test public void testUpdateFetchPositionOfPausedPartitionsRequiringOffsetReset() -
testUpdateFetchPositionOfPausedPartitionsWithoutAValidPosition
@Test public void testUpdateFetchPositionOfPausedPartitionsWithoutAValidPosition() -
testUpdateFetchPositionOfPausedPartitionsWithAValidPosition
@Test public void testUpdateFetchPositionOfPausedPartitionsWithAValidPosition() -
testGetOffsetsForTimesTimeout
@Test public void testGetOffsetsForTimesTimeout() -
testGetOffsetsForTimes
@Test public void testGetOffsetsForTimes() -
testGetOffsetsFencedLeaderEpoch
@Test public void testGetOffsetsFencedLeaderEpoch() -
testGetOffsetByTimeWithPartitionsRetryCouldTriggerMetadataUpdate
@Test public void testGetOffsetByTimeWithPartitionsRetryCouldTriggerMetadataUpdate() -
testGetOffsetsUnknownLeaderEpoch
@Test public void testGetOffsetsUnknownLeaderEpoch() -
testGetOffsetsIncludesLeaderEpoch
@Test public void testGetOffsetsIncludesLeaderEpoch() -
testGetOffsetsForTimesWhenSomeTopicPartitionLeadersNotKnownInitially
@Test public void testGetOffsetsForTimesWhenSomeTopicPartitionLeadersNotKnownInitially() -
testGetOffsetsForTimesWhenSomeTopicPartitionLeadersDisconnectException
@Test public void testGetOffsetsForTimesWhenSomeTopicPartitionLeadersDisconnectException() -
testListOffsetsWithZeroTimeout
@Test public void testListOffsetsWithZeroTimeout() -
testBatchedListOffsetsMetadataErrors
@Test public void testBatchedListOffsetsMetadataErrors() -
testOffsetValidationRequestGrouping
@Test public void testOffsetValidationRequestGrouping() -
testOffsetValidationAwaitsNodeApiVersion
@Test public void testOffsetValidationAwaitsNodeApiVersion() -
testOffsetValidationSkippedForOldBroker
@Test public void testOffsetValidationSkippedForOldBroker() -
testOffsetValidationSkippedForOldResponse
@Test public void testOffsetValidationSkippedForOldResponse() -
testOffsetValidationresetPositionForUndefinedEpochWithDefinedResetPolicy
@Test public void testOffsetValidationresetPositionForUndefinedEpochWithDefinedResetPolicy() -
testOffsetValidationresetPositionForUndefinedOffsetWithDefinedResetPolicy
@Test public void testOffsetValidationresetPositionForUndefinedOffsetWithDefinedResetPolicy() -
testOffsetValidationresetPositionForUndefinedEpochWithUndefinedResetPolicy
@Test public void testOffsetValidationresetPositionForUndefinedEpochWithUndefinedResetPolicy() -
testOffsetValidationresetPositionForUndefinedOffsetWithUndefinedResetPolicy
@Test public void testOffsetValidationresetPositionForUndefinedOffsetWithUndefinedResetPolicy() -
testOffsetValidationTriggerLogTruncationForBadOffsetWithUndefinedResetPolicy
@Test public void testOffsetValidationTriggerLogTruncationForBadOffsetWithUndefinedResetPolicy() -
testOffsetValidationHandlesSeekWithInflightOffsetForLeaderRequest
@Test public void testOffsetValidationHandlesSeekWithInflightOffsetForLeaderRequest() -
testOffsetValidationFencing
@Test public void testOffsetValidationFencing() -
testBeginningOffsets
@Test public void testBeginningOffsets() -
testBeginningOffsetsDuplicateTopicPartition
@Test public void testBeginningOffsetsDuplicateTopicPartition() -
testBeginningOffsetsMultipleTopicPartitions
@Test public void testBeginningOffsetsMultipleTopicPartitions() -
testBeginningOffsetsEmpty
@Test public void testBeginningOffsetsEmpty() -
testEndOffsets
@Test public void testEndOffsets() -
testEndOffsetsDuplicateTopicPartition
@Test public void testEndOffsetsDuplicateTopicPartition() -
testEndOffsetsMultipleTopicPartitions
@Test public void testEndOffsetsMultipleTopicPartitions() -
testEndOffsetsEmpty
@Test public void testEndOffsetsEmpty()
-