Hi Again!

Unlike min.insync.replicas, unclean.leader.election.enable isn't set to
false even if it's given 'false' in create topic command.

here is the command used to create the topic:
$./kafka-topics.sh --create --topic bbb --zookeeper localhost
--replication-factor 3 --partitions 3 --config min.insync.replicas=2
 unclean.leader.election.enable=false

here is the log from server.log
[2015-06-22 11:47:28,521] INFO Created log for partition [bbb,0] in
/var/lib/kafka with properties {segment.index.bytes -> 10485760,
file.delete.delay.ms -> 60000, segment.bytes -> 536870912, flush.ms ->
1000, delete.retention.ms -> 86400000, index.interval.bytes -> 4096,
retention.bytes -> -1, min.insync.replicas -> 2, cleanup.policy -> delete,
unclean.leader.election.enable -> true, segment.ms -> 604800000,
max.message.bytes -> 1000012, flush.messages -> 10000,
min.cleanable.dirty.ratio -> 0.5, retention.ms -> 604800000,
segment.jitter.ms -> 0}. (kafka.log.LogManager)

Is this a known issue? is there a workaround ? or have I missed anything ?


On Thu, Jun 18, 2015 at 12:51 PM, Zaiming Shi <zmst...@gmail.com> wrote:

> Kafka 0.8.2.1
>
> I have `unclean.leader.election.enable=false` in server.properties
>
> I can see this log in server.log:
> [2015-06-18 09:57:18,961] INFO Property unclean.leader.election.enable is
> overridden to false (kafka.utils.VerifiableProperties)
>
> Yet the topic was created with `unclean.leader.election.enable -> true`
>
> I see similarity in this issue:
> https://issues.apache.org/jira/browse/KAFKA-2114
>
> Regards
> -Zaiming
>
>

Reply via email to