- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
min.insync.replicas - Check if taken into account after changing the value
- Labels:
-
Apache Kafka
-
Apache Zookeeper
Created on ‎11-21-2018 05:32 AM - edited ‎09-16-2022 06:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎11-21-2018 07:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to set it service wide, check out the docs https://www.cloudera.com/documentation/kafka/latest/topics/kafka_ha.html
Created on ‎11-21-2018 07:31 AM - edited ‎11-21-2018 07:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎11-21-2018 07:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎11-21-2018 08:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎11-21-2018 08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot for your help and your time @Tomas79, I will try this solution.
