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

Swapnil Ghike commented on KAFKA-840:
-------------------------------------

1. Renamed inShuttingdown in partition/replica state machines to isRunning, 
because the former does not let us distinguish between a state machine that has 
not started, and a state machine that has started and is not shutting down. 
Made changes at other places accordingly.

2. With this patch, if the state machine has not started, then 
handleStateChange() throws a StateChangeFailedException with a message "because 
the state machine has not started". 
                
> Controller tries to perform preferred replica election on failover before 
> state machines have started up
> --------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-840
>                 URL: https://issues.apache.org/jira/browse/KAFKA-840
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Swapnil Ghike
>            Assignee: Swapnil Ghike
>            Priority: Blocker
>              Labels: bugs
>             Fix For: 0.8
>
>         Attachments: kafka-840.patch
>
>
> If the admin/preferred_replica_election path is non-empty when a new 
> controller starts, the controller attempts to perform preferred replica 
> election before the partition and replica state machine have been 
> initialized. In this case, the controller will try to make invalid state 
> transitions. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to