You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Andrew Jorgensen <aj...@twitter.com.INVALID> on 2014/12/09 21:46:40 UTC

Topic config reset on alter

I am using kafka 8.1.1

If you run an alter on a topic to increase the number of partitions the existing configs are removed from the topic. You can confirm this by doing:

bin/kafka-topics.sh —zookeeper localhost —alter —topic topic —config retention.ms=3600000

bin/kafka-topics.sh —zookeeper localhost —describe
> Topic:topic  PartitionCount:5       ReplicationFactor:1     Configs:retention.ms=3600000

bin/kafka-topics.sh —zookeeper localhost —alter —topic topic —partitions 10

bin/kafka-topics.sh —zookeeper localhost —describe
> Topic:topic  PartitionCount:10       ReplicationFactor:1     Configs:

This feels like a bug to me, where is the best place to report something like this?
-- 
Andrew Jorgensen
@ajorgensen

Re: Topic config reset on alter

Posted by Andrew Jorgensen <aj...@twitter.com.INVALID>.
Filed it here: https://issues.apache.org/jira/browse/KAFKA-1816

Thanks!
-- 
Andrew Jorgensen
@ajorgensen

On December 9, 2014 at 4:10:38 PM, Neha Narkhede (neha@confluent.io) wrote:

Thanks for reporting the bug. Would you mind filing a JIRA  
<https://issues.apache.org/jira/browse/KAFKA/?selectedTab=com.atlassian.jira.jira-projects-plugin:issues-panel>  
?  

On Tue, Dec 9, 2014 at 12:46 PM, Andrew Jorgensen <  
ajorgensen@twitter.com.invalid> wrote:  

> I am using kafka 8.1.1  
>  
> If you run an alter on a topic to increase the number of partitions the  
> existing configs are removed from the topic. You can confirm this by doing:  
>  
> bin/kafka-topics.sh —zookeeper localhost —alter —topic topic —config  
> retention.ms=3600000  
>  
> bin/kafka-topics.sh —zookeeper localhost —describe  
> > Topic:topic PartitionCount:5 ReplicationFactor:1 Configs:  
> retention.ms=3600000  
>  
> bin/kafka-topics.sh —zookeeper localhost —alter —topic topic —partitions 10  
>  
> bin/kafka-topics.sh —zookeeper localhost —describe  
> > Topic:topic PartitionCount:10 ReplicationFactor:1 Configs:  
>  
> This feels like a bug to me, where is the best place to report something  
> like this?  
> --  
> Andrew Jorgensen  
> @ajorgensen  




--  
Thanks,  
Neha  

Re: Topic config reset on alter

Posted by Neha Narkhede <ne...@confluent.io>.
Thanks for reporting the bug. Would you mind filing a JIRA
<https://issues.apache.org/jira/browse/KAFKA/?selectedTab=com.atlassian.jira.jira-projects-plugin:issues-panel>
?

On Tue, Dec 9, 2014 at 12:46 PM, Andrew Jorgensen <
ajorgensen@twitter.com.invalid> wrote:

> I am using kafka 8.1.1
>
> If you run an alter on a topic to increase the number of partitions the
> existing configs are removed from the topic. You can confirm this by doing:
>
> bin/kafka-topics.sh —zookeeper localhost —alter —topic topic —config
> retention.ms=3600000
>
> bin/kafka-topics.sh —zookeeper localhost —describe
> > Topic:topic  PartitionCount:5       ReplicationFactor:1     Configs:
> retention.ms=3600000
>
> bin/kafka-topics.sh —zookeeper localhost —alter —topic topic —partitions 10
>
> bin/kafka-topics.sh —zookeeper localhost —describe
> > Topic:topic  PartitionCount:10       ReplicationFactor:1     Configs:
>
> This feels like a bug to me, where is the best place to report something
> like this?
> --
> Andrew Jorgensen
> @ajorgensen




-- 
Thanks,
Neha