Jose Armando Garcia Sancio created KAFKA-9100:
-------------------------------------------------
Summary: The controller code allows for replicas to get added to
the assignment when the replicas goes online
Key: KAFKA-9100
URL: https://issues.apache.org/jira/browse/KAFKA-9100
Project: Kafka
Issue Type: Task
Components: controller
Affects Versions: 2.3.0
Reporter: Jose Armando Garcia Sancio
Assignee: Jose Armando Garcia Sancio
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)