Class AbstractCoordinatorTest

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

public class AbstractCoordinatorTest extends Object
  • Constructor Details

    • AbstractCoordinatorTest

      public AbstractCoordinatorTest()
  • Method Details

    • closeCoordinator

      @AfterEach public void closeCoordinator()
    • testMetrics

      @Test public void testMetrics()
    • testCoordinatorDiscoveryExponentialBackoff

      @Test public void testCoordinatorDiscoveryExponentialBackoff()
    • testWakeupFromEnsureCoordinatorReady

      @Test public void testWakeupFromEnsureCoordinatorReady()
    • testNoWakeupFromAsyncCoordinatorReadyOnRetriableError

      @Test public void testNoWakeupFromAsyncCoordinatorReadyOnRetriableError()
    • testTimeoutAndRetryJoinGroupIfNeeded

      @Test public void testTimeoutAndRetryJoinGroupIfNeeded() throws Exception
      Throws:
      Exception
    • testGroupMaxSizeExceptionIsFatal

      @Test public void testGroupMaxSizeExceptionIsFatal()
    • testJoinGroupRequestTimeout

      @Test public void testJoinGroupRequestTimeout()
    • testJoinGroupRequestTimeoutLowerBoundedByDefaultRequestTimeout

      @Test public void testJoinGroupRequestTimeoutLowerBoundedByDefaultRequestTimeout()
    • testJoinGroupRequestMaxTimeout

      @Test public void testJoinGroupRequestMaxTimeout()
    • testJoinGroupRequestWithMemberIdRequired

      @Test public void testJoinGroupRequestWithMemberIdRequired()
    • testJoinGroupRequestWithFencedInstanceIdException

      @Test public void testJoinGroupRequestWithFencedInstanceIdException()
    • testJoinGroupProtocolTypeAndName

      @Test public void testJoinGroupProtocolTypeAndName()
    • testRetainMemberIdAfterJoinGroupDisconnect

      @Test public void testRetainMemberIdAfterJoinGroupDisconnect()
    • testRetainMemberIdAfterSyncGroupDisconnect

      @Test public void testRetainMemberIdAfterSyncGroupDisconnect()
    • testRejoinReason

      @Test public void testRejoinReason()
    • testNoGenerationWillNotTriggerProtocolNameCheck

      @Test public void testNoGenerationWillNotTriggerProtocolNameCheck()
    • testSyncGroupRequestWithFencedInstanceIdException

      @Test public void testSyncGroupRequestWithFencedInstanceIdException()
    • testJoinGroupUnknownMemberResponseWithOldGeneration

      @Test public void testJoinGroupUnknownMemberResponseWithOldGeneration() throws InterruptedException
      Throws:
      InterruptedException
    • testSyncGroupUnknownMemberResponseWithOldGeneration

      @Test public void testSyncGroupUnknownMemberResponseWithOldGeneration() throws InterruptedException
      Throws:
      InterruptedException
    • testSyncGroupIllegalGenerationResponseWithOldGeneration

      @Test public void testSyncGroupIllegalGenerationResponseWithOldGeneration() throws InterruptedException
      Throws:
      InterruptedException
    • testHeartbeatSentWhenCompletingRebalance

      @Test public void testHeartbeatSentWhenCompletingRebalance() throws Exception
      Throws:
      Exception
    • testHeartbeatIllegalGenerationResponseWithOldGeneration

      @Test public void testHeartbeatIllegalGenerationResponseWithOldGeneration() throws InterruptedException
      Throws:
      InterruptedException
    • testHeartbeatUnknownMemberResponseWithOldGeneration

      @Test public void testHeartbeatUnknownMemberResponseWithOldGeneration() throws InterruptedException
      Throws:
      InterruptedException
    • testHeartbeatRebalanceInProgressResponseDuringRebalancing

      @Test public void testHeartbeatRebalanceInProgressResponseDuringRebalancing() throws InterruptedException
      Throws:
      InterruptedException
    • testHeartbeatInstanceFencedResponseWithOldGeneration

      @Test public void testHeartbeatInstanceFencedResponseWithOldGeneration() throws InterruptedException
      Throws:
      InterruptedException
    • testHeartbeatRequestWithFencedInstanceIdException

      @Test public void testHeartbeatRequestWithFencedInstanceIdException()
    • testJoinGroupRequestWithGroupInstanceIdNotFound

      @Test public void testJoinGroupRequestWithGroupInstanceIdNotFound()
    • testJoinGroupRequestWithRebalanceInProgress

      @Test public void testJoinGroupRequestWithRebalanceInProgress()
    • testLeaveGroupSentWithGroupInstanceIdUnSet

      @Test public void testLeaveGroupSentWithGroupInstanceIdUnSet()
    • testLeaveGroupSentWithGroupInstanceIdUnSetAndDifferentGroupMembershipOperation

      @ParameterizedTest @MethodSource("groupInstanceIdAndMembershipOperationMatrix") public void testLeaveGroupSentWithGroupInstanceIdUnSetAndDifferentGroupMembershipOperation(Optional<String> groupInstanceId, org.apache.kafka.clients.consumer.CloseOptions.GroupMembershipOperation operation)
    • testHandleNormalLeaveGroupResponse

      @Test public void testHandleNormalLeaveGroupResponse()
    • testHandleMultipleMembersLeaveGroupResponse

      @Test public void testHandleMultipleMembersLeaveGroupResponse()
    • testHandleLeaveGroupResponseWithEmptyMemberResponse

      @Test public void testHandleLeaveGroupResponseWithEmptyMemberResponse()
    • testHandleLeaveGroupResponseWithException

      @Test public void testHandleLeaveGroupResponseWithException()
    • testUncaughtExceptionInHeartbeatThread

      @Test public void testUncaughtExceptionInHeartbeatThread() throws Exception
      Throws:
      Exception
    • testAuthenticationErrorInHeartbeatThreadTriggersRejoin

      @Test public void testAuthenticationErrorInHeartbeatThreadTriggersRejoin() throws Exception
      Throws:
      Exception
    • testPollHeartbeatAwakesHeartbeatThread

      @Test public void testPollHeartbeatAwakesHeartbeatThread() throws Exception
      Throws:
      Exception
    • testLookupCoordinator

      @Test public void testLookupCoordinator()
    • testWakeupAfterJoinGroupSent

      @Test public void testWakeupAfterJoinGroupSent() throws Exception
      Throws:
      Exception
    • testWakeupAfterJoinGroupSentExternalCompletion

      @Test public void testWakeupAfterJoinGroupSentExternalCompletion() throws Exception
      Throws:
      Exception
    • testWakeupAfterJoinGroupReceived

      @Test public void testWakeupAfterJoinGroupReceived() throws Exception
      Throws:
      Exception
    • testWakeupAfterJoinGroupReceivedExternalCompletion

      @Test public void testWakeupAfterJoinGroupReceivedExternalCompletion() throws Exception
      Throws:
      Exception
    • testWakeupAfterSyncGroupSentExternalCompletion

      @Test public void testWakeupAfterSyncGroupSentExternalCompletion() throws Exception
      Throws:
      Exception
    • testWakeupAfterSyncGroupReceived

      @Test public void testWakeupAfterSyncGroupReceived()
    • testWakeupAfterSyncGroupReceivedExternalCompletion

      @Test public void testWakeupAfterSyncGroupReceivedExternalCompletion()
    • testWakeupInOnJoinComplete

      @Test public void testWakeupInOnJoinComplete() throws Exception
      Throws:
      Exception
    • testAuthenticationErrorInEnsureCoordinatorReady

      @Test public void testAuthenticationErrorInEnsureCoordinatorReady()
    • testBackoffAndRetryUponRetriableError

      @Test public void testBackoffAndRetryUponRetriableError()
    • testReturnUponRetriableErrorAndExpiredTimer

      @Test public void testReturnUponRetriableErrorAndExpiredTimer() throws InterruptedException
      Throws:
      InterruptedException