<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: KAFKA min.insync.replicas not taking effect. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KAFKA-min-insync-replicas-not-taking-effect/m-p/67413#M78456</link>
    <description>&lt;P&gt;you are correct, i tested. i thought it shows min.insynch.replicas also,thanks for help.&lt;/P&gt;</description>
    <pubDate>Fri, 18 May 2018 06:12:44 GMT</pubDate>
    <dc:creator>hrishi1dypim</dc:creator>
    <dc:date>2018-05-18T06:12:44Z</dc:date>
    <item>
      <title>KAFKA min.insync.replicas not taking effect.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KAFKA-min-insync-replicas-not-taking-effect/m-p/67387#M78454</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recently i have made UAT cluster of KAFKA with three brokers. the problem is&amp;nbsp;min.insync.replicas is not taking any effect. following things are happeninig :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. in server.properties there is no mention of&amp;nbsp;min.insync.replicas, whenever i am creating any topic and whatever replication number i am providing ,in synch replica is just copying that. so if i create topic test with replica 3 in synch replica is also 3. even if i am creating replication with 2 then in&amp;nbsp; synch is also 2.&lt;/P&gt;
&lt;P&gt;Partition Detail&lt;/P&gt;
&lt;P&gt;Partition First Offset Last Offset Size Leader Replicas In Sync Replicas Preferred Leader? Under Replicated?&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;2,3,1&lt;/TD&gt;
&lt;TD&gt;1,2,3&lt;/TD&gt;
&lt;TD&gt;Yes&lt;/TD&gt;
&lt;TD&gt;No&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;3,1,2&lt;/TD&gt;
&lt;TD&gt;1,2,3&lt;/TD&gt;
&lt;TD&gt;Yes&lt;/TD&gt;
&lt;TD&gt;No&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1,2,3&lt;/TD&gt;
&lt;TD&gt;1,2,3&lt;/TD&gt;
&lt;TD&gt;Yes&lt;/TD&gt;
&lt;TD&gt;No&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. i tried to put&amp;nbsp;min.insync.replicas=2 in server.properties of all the brokers and tried creating the topic with replication 3, here i was expecting in synch replica to be 2 but no its again 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. then i tried to create topic&amp;nbsp;by providing config with this&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;kafka-topics.sh --create --zookeeper machine1:2181,machine2:2181,machine3:2181 --replication-factor 3 --partitions 3 --config min.insync.replicas=1 --topic syncdemo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here i thought this time it will show in synch replica as 1 but no ,it stills 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. lastly i tried to alter it&amp;nbsp; to provide 2 instead of 1 to check whether alter make it work by below :&lt;/P&gt;
&lt;P&gt;kafka-topics.sh --alter --zookeeper machine1:2181,machine2:2181,machine3:2181 --topic syncdemo --config min.insync.replicas=1 ,&lt;/P&gt;
&lt;P&gt;but no effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its really very frustrating that none of the ways are making it work. please provide the solution,thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am using : CDH 5.7&amp;nbsp; and apache Kafka :&amp;nbsp; kafka_2.11-1.0.0 ,&amp;nbsp; zookeeper-3.4.5-cdh5.7.0&amp;nbsp; on redhat 6.5.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:13:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/KAFKA-min-insync-replicas-not-taking-effect/m-p/67387#M78454</guid>
      <dc:creator>hrishi1dypim</dc:creator>
      <dc:date>2022-09-16T13:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: KAFKA min.insync.replicas not taking effect.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KAFKA-min-insync-replicas-not-taking-effect/m-p/67400#M78455</link>
      <description>&lt;P&gt;The output you see is showing that all three replicas are in sync.&amp;nbsp; The min.insync.replicas governs whether you are able to produce or consume if that number in the ISR is less than min.insync.replicas.&amp;nbsp; Have you tried to shut down one broker and see if you can still produce or consume to the topic?&amp;nbsp; How are you validating when min.insync.replicas threshold is crossed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-pd&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 17:15:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/KAFKA-min-insync-replicas-not-taking-effect/m-p/67400#M78455</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2018-05-17T17:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: KAFKA min.insync.replicas not taking effect.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KAFKA-min-insync-replicas-not-taking-effect/m-p/67413#M78456</link>
      <description>&lt;P&gt;you are correct, i tested. i thought it shows min.insynch.replicas also,thanks for help.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 06:12:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/KAFKA-min-insync-replicas-not-taking-effect/m-p/67413#M78456</guid>
      <dc:creator>hrishi1dypim</dc:creator>
      <dc:date>2018-05-18T06:12:44Z</dc:date>
    </item>
  </channel>
</rss>

