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

The controller code allows for replicas to get added to the assignment when the replicas goes online

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: controller
    • Labels:
      None

      Description

      The controller code when modelling the replicas state machine allows for a replica to be added to assignment when going online from a new state. This should not be possible.

      Replicas are added to a partition when creating a topic, creating a partition or reassigning a partition. Whether a replica goes online should not cause a replica to get added to the assignment.

      The code that currently allows this is here: https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/controller/ReplicaStateMachine.scala#L194-L198

      We should restructure the code so that that condition is not possible.

        Attachments

          Activity

            People

            • Assignee:
              jagsancio Jose Armando Garcia Sancio
              Reporter:
              jagsancio Jose Armando Garcia Sancio

              Dates

              • Created:
                Updated:

                Issue deployment