You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/03/24 00:25:00 UTC
[jira] [Commented] (KAFKA-6652) The controller should log failed
attempts to transition a replica to OfflineReplica state if there is no
leadership info
[ https://issues.apache.org/jira/browse/KAFKA-6652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16412305#comment-16412305 ]
ASF GitHub Bot commented on KAFKA-6652:
---------------------------------------
gitlw opened a new pull request #4769: KAFKA-6652: The controller should log failed attempts to transition a replica to OfflineReplica state if there is no leadership info
URL: https://github.com/apache/kafka/pull/4769
A controller can pick up a partially deleted topic where some partition znodes
have been deleted by the previous controller. In that case, there will be no leadership
info for the replica's partition, and hence trying to change the state of the replica to OfflineReplica
will fail. This patch adds logs to indicate the failed attempts to change the state.
There will be a separate PR to address the partially deleted topic issue.
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
> The controller should log failed attempts to transition a replica to OfflineReplica state if there is no leadership info
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-6652
> URL: https://issues.apache.org/jira/browse/KAFKA-6652
> Project: Kafka
> Issue Type: Improvement
> Reporter: Lucas Wang
> Assignee: Lucas Wang
> Priority: Minor
>
> In certain conditions, the controller's attempt to transition a replica to OfflineReplica state could fail because there is no leadership info, e.g. the condition described in [KAFKA-6650|https://issues.apache.org/jira/browse/KAFKA-6650]. When that happens, there should be logs to indicate the failed state transitions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)