title: Spring Boot 2.0.0.RC2 KafkaHealthIndicator, Actuator {“status”:“DOWN”}
body: <p>I ported my application from <code>Spring Boot 2.0.0.M6</code> to <code>Spring Boot 2.0.0.RC2</code> and ran into the issue with <code>KafkaHealthIndicator</code> that thinks right now, that my Kafka status is <code>DOWN</code>.</p>
  
  <pre><code>  kafka":{
       "status":"DOWN",
       "details":{
          "clusterId":"wpAKGc_DQBWy9YfPTLNctQ",
          "brokerId":"0",
          "nodes":1
       }
    }
  </code></pre>
  
  <p><code>org.springframework.boot.actuate.kafka.KafkaHealthIndicator</code> uses the following logic in order to determine the status:</p>
  
  <pre><code>Status status = nodes &gt;= replicationFactor ? Status.UP : Status.DOWN;
  </code></pre>
  
  <p>where replication factor is retrieved by the following property: <code>transaction.state.log.replication.factor</code></p>
  
  <p>I have added the following properties to my Kafka <code>server.properties</code>:</p>
  
  <pre><code>offsets.topic.replication.factor=1
  transaction.state.log.replication.factor=1
  transaction.state.log.min.isr=1
  </code></pre>
  
  <p>but it doesn't help.</p>
  
  <p>What am I doing wrong and how to fix it ?</p>
  
  <p>Right now, I use the temporal solution with disabling healthcheck for Kafka:</p>
  
  <pre><code>management.health.kafka.enabled=false
  </code></pre>
  
  <p>but I don't like it and I want to fix it.</p>