Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1326 New consumer checklist
  3. KAFKA-2245

Add response tests for ConsumerCoordinator

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • consumer
    • None

    Description

      We can validate error codes from JoinGroupResponses and HeartbeatResponses. Currently this includes:

      • JoinGroupRequest to the wrong coordinator returns NOT_COORDINATOR_FOR_CONSUMER
      • JoinGroupRequest with an unknown partition assignment strategy returns UNKNOWN_PARTITION_ASSIGNMENT_STRATEGY
      • JoinGroupRequest with an out-of-range session timeout returns INVALID_SESSION_TIMEOUT
      • JoinGroupRequest on a brand new group with an unrecognized consumer id produces UNKNOWN_CONSUMER_ID
      • JoinGroupRequest with mismatched partition assignment strategy compared to the rest of the group returns INCONSISTENT_PARTITION_ASSIGNMENT_STRATEGY
      • JoinGroupRequest on an existing group with an unrecognized consumer id produces UNKNOWN_CONSUMER_ID
      • A correct JoinGroupRequest returns NONE
      • HeartbeatRequest to the wrong coordinator returns NOT_COORDINATOR_FOR_CONSUMER
      • HeartbeatRequest with an unknown group returns UNKNOWN_CONSUMER_ID
      • HeartbeatRequest with an unrecognized consumer id returns UNKNOWN_CONSUMER_ID
      • HeartbeatRequest with generation id mismatch returns ILLEGAL_GENERATION
      • A correct HeartbeatRequest returns NONE

      We can validate the generation id increments on rebalance based on the JoinGroupResponse.

      Attachments

        1. KAFKA-2245.patch
          15 kB
          Onur Karaman
        2. KAFKA-2245_2015-06-19_22:55:56.patch
          15 kB
          Onur Karaman

        Activity

          People

            onurkaraman Onur Karaman
            onurkaraman Onur Karaman
            Joel Jacob Koshy Joel Jacob Koshy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: