You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Paul Dubuc (Jira)" <ji...@apache.org> on 2022/05/13 15:21:00 UTC

[jira] [Commented] (KAFKA-5074) Transition to OnlinePartition without preferred leader in ISR fails

    [ https://issues.apache.org/jira/browse/KAFKA-5074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17536721#comment-17536721 ] 

Paul Dubuc commented on KAFKA-5074:
-----------------------------------

I see that this ticket is still open and unresolved.  Is there a particular version of Kafka where this problem has been fixed?  Or is there a workaround method for taking a node down that avoids this problem?  Thanks.

> Transition to OnlinePartition without preferred leader in ISR fails
> -------------------------------------------------------------------
>
>                 Key: KAFKA-5074
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5074
>             Project: Kafka
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 0.9.0.0
>            Reporter: Dustin Cote
>            Priority: Major
>
> Running 0.9.0.0, the controller can get into a state where it no longer is able to elect a leader for an Offline partition. It's unclear how this state is first achieved but in the steady state, this happens:
> -There are partitions with a leader of -1
> -The Controller repeatedly attempts a preferred leader election for these partitions
> -The preferred leader election fails because the only replica in the ISR is not the preferred leader
> The log cycle looks like this:
> {code}
> [2017-04-12 18:00:18,891] INFO [Controller 8]: Starting preferred replica leader election for partitions topic,1
> [2017-04-12 18:00:18,891] INFO [Partition state machine on Controller 8]: Invoking state change to OnlinePartition for partitions topic,1
> [2017-04-12 18:00:18,892] INFO [PreferredReplicaPartitionLeaderSelector]: Current leader -1 for partition [topic,1] is not the preferred replica. Trigerring preferred replica leader election (kafka.controller.PreferredReplicaPartitionLeaderSelector)
> [2017-04-12 18:00:18,893] WARN [Controller 8]: Partition [topic,1] failed to complete preferred replica leader election. Leader is -1 (kafka.controller.KafkaController)
> {code}
> It's not clear if this would happen on versions later that 0.9.0.0.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)