Created on 11-21-2018 05:32 AM - edited 09-16-2022 06:55 AM
Hi,
I need to know if the "min.insync.replicas" configured with a new value (2) is taking effect on all of our Topics that was already created before the change of this value.
What I've already done:
- I noticed that when I execute the command:
kafka-topics --zookeeper ServerName:2181 --topic TOPICTEST --describe
I have this result:
Topic:TOPICTEST PartitionCount:3 ReplicationFactor:3 Configs:retention.ms=172800000
==> I don't see the "min.insync.replicas=2" result
I see it only when I alter the topic this way:
kafka-topics --alter --zookeeper ServerName:2181 --topic TOPICTEST --config min.insync.replicas=2
Then the result is of the same --describe is:
Topic:TOPICTEST PartitionCount:3 ReplicationFactor:3 Configs:retention.ms=172800000,min.insync.replicas=2
Which confirms that the min.insync.replicas value has been taken into account.
How can I check the new default value is applied as planned?
Thanks,
Jo
Created 11-21-2018 08:27 AM
Created 11-21-2018 07:16 AM
Created on 11-21-2018 07:31 AM - edited 11-21-2018 07:32 AM
Thanks @Tomas79,
When launching the command again (after having changed the default value from 1 to 2) and create a new topic "TOPICtest2" afterward,
I still don't see the property in the result of the command:
kafka-topics --zookeeper ServerName:2181 --topic TOPICtest2 --describe
.
.
Result:
Topic:TOPICTEST PartitionCount:3 ReplicationFactor:3 Configs:retention.ms=172800000
Does this mean that the value (min.insync.replicas=2) is not showed when the topic has the default value?
Created 11-21-2018 07:32 AM
Created 11-21-2018 07:41 AM
Created 11-21-2018 08:27 AM
Created 11-21-2018 08:31 AM
Thanks a lot for your help and your time @Tomas79, I will try this solution.