You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Onur Karaman (JIRA)" <ji...@apache.org> on 2016/11/28 05:11:58 UTC
[jira] [Comment Edited] (KAFKA-3959) __consumer_offsets wrong
number of replicas at startup
[ https://issues.apache.org/jira/browse/KAFKA-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15700935#comment-15700935 ]
Onur Karaman edited comment on KAFKA-3959 at 11/28/16 5:11 AM:
---------------------------------------------------------------
+1. I was thinking about this approach too (assuming [~hachikuji] is also supporting the enforcement of "offsets.topic.replication.factor").
As [~hachikuji] said, the /tmp log.dirs does give the impression that config/server.properties was for quickstart anyway, so I think this is fine.
was (Author: onurkaraman):
+1. I was thinking about this approach too (assuming you're also supporting the enforcement of "offsets.topic.replication.factor").
As [~hachikuji] said, the /tmp log.dirs does give the impression that config/server.properties was for quickstart anyway, so I think this is fine.
> __consumer_offsets wrong number of replicas at startup
> ------------------------------------------------------
>
> Key: KAFKA-3959
> URL: https://issues.apache.org/jira/browse/KAFKA-3959
> Project: Kafka
> Issue Type: Bug
> Components: consumer, offset manager, replication
> Affects Versions: 0.9.0.1, 0.10.0.0
> Environment: Brokers of 3 kafka nodes running Red Hat Enterprise Linux Server release 7.2 (Maipo)
> Reporter: Alban Hurtaud
>
> When creating a stack of 3 kafka brokers, the consumer is starting faster than kafka nodes and when trying to read a topic, only one kafka node is available.
> So the __consumer_offsets is created with a replication factor set to 1 (instead of configured 3) :
> offsets.topic.replication.factor=3
> default.replication.factor=3
> min.insync.replicas=2
> Then, other kafka nodes go up and we have exceptions because the replicas # for __consumer_offsets is 1 and min insync is 2. So exceptions are thrown.
> What I missed is : Why the __consumer_offsets is created with replication to 1 (when 1 broker is running) whereas in server.properties it is set to 3 ?
> To reproduce :
> - Prepare 3 kafka nodes with the 3 lines above added to servers.properties.
> - Run one kafka,
> - Run one consumer (the __consumer_offsets is created with replicas =1)
> - Run 2 more kafka nodes
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)