soarez commented on code in PR #14881:
URL: https://github.com/apache/kafka/pull/14881#discussion_r1420503147
##########
core/src/main/scala/kafka/server/ReplicaManager.scala:
##########
@@ -2666,8 +2648,8 @@ class ReplicaManager(val config: KafkaConfig,
// is unavailable. This is required to ensure that we include the
partition's
// high watermark in the checkpoint file (see KAFKA-1647).
val state = info.partition.toLeaderAndIsrPartitionState(tp, isNew)
- val isNewLeaderEpoch = partition.makeFollower(state,
offsetCheckpoints, Some(info.topicId))
-
+ val isNewLeaderEpoch = partition.makeFollower(state,
offsetCheckpoints, Some(info.topicId), partitionDirectoryId)
+ maybeUpdateTopicAssignment(partition, partitionDirectoryId)
Review Comment:
I think we should only call this if `localChanges.leaders` or
`localChanges.followers` aren't empty, otherwise we can get duplicate
assignment requests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]