Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9254

Updating Kafka Broker configuration dynamically twice reverts log configuration to default

    XMLWordPrintableJSON

Details

    Description

      We are engineers at Huobi and now encounter Kafka BUG 

      Modifying DynamicBrokerConfig more than 2 times will invalidate the topic level unrelated configuration

      The bug reproduction method as follows:

      1. Set Kafka Broker config  server.properties min.insync.replicas=3
      2. Create topic test-1 and set topic‘s level config min.insync.replicas=2
      3. Dynamically modify the configuration twice as shown below
      bin/kafka-configs.sh --bootstrap-server xxx:9092 --entity-type brokers --entity-default --alter --add-config log.message.timestamp.type=LogAppendTime
      
      bin/kafka-configs.sh --bootstrap-server xxx:9092 --entity-type brokers --entity-default --alter --add-config log.retention.ms=604800000
      
      
      1. stop a Kafka Server and found the Exception as shown below
        org.apache.kafka.common.errors.NotEnoughReplicasException: Number of insync replicas for partition test-1-0 is [2], below required minimum [3]

       

       

      Attachments

        Activity

          People

            huxi_2b huxihx
            fenghong fenghong
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: