Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16261

MembershipManagerImpl.updateSubscription fails if already empty subscription

    XMLWordPrintableJSON

Details

    Description

      The internal SubscriptionState object keeps track of whether the assignment is user-assigned, or auto-assigned. If there are no assigned partitions, the assignment resets to NONE. If you call SubscriptionState.assignFromSubscribed in this state it fails.

      The easiest thing is perhaps to check SubscriptionState.hasAutoAssignedPartitions() to make sure that assignFromSubscribed is going to be permitted.

      Attachments

        Issue Links

          Activity

            People

              lucasbru Lucas Brutschy
              schofielaj Andrew Schofield
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: