title: Debezium connector for MySQL. The db history topic is missing
body: <p>I'm using the Debezium connector version 0.8 to capture the changes from a MySQL database and move it to Kafka. I'm using Docker with a container for MySQL, another one for the connector, and another one for Kafka.</p>
  <p>When I stop Docker (<code>docker-compose down</code>) and I start Docker one more time, I usually get the following error:</p>
  <pre><code>org.apache.kafka.connect.errors.ConnectException: The db history topic is missing. You may attempt to recover it by reconfiguring the connector to SCHEMA_ONLY_RECOVERY
  </code></pre>
  <p>I have read the solution for this issue on the official page here:</p>
  <p><a href="https://debezium.io/blog/2018/03/16/note-on-database-history-topic-configuration/" rel="nofollow noreferrer">https://debezium.io/blog/2018/03/16/note-on-database-history-topic-configuration/</a></p>
  <p>But I followed those steps and I think my configuration is ok:</p>
  <pre><code>log.retention.bytes = -1
  log.retention.hours = 168       
  log.retention.minutes = null
  log.retention.ms = -1
  </code></pre>
  <p>Note that if I set <code>log.retention.ms</code> to -1 then <code>log.retention.minutes</code> and <code>log.retention.hours</code> won't be used like the official documentation explains, and then I have solved the retention size and retention time problems.</p>
  <p>So, does anybody know why I'm getting this error?</p>
  <p>This is a part of university work. I think I cannot share the complete <code>docker-compose</code> file before I publish it at my university, but I can show you the important things related to this problem. I don't think this is a configuration problem because I have nothing special in my <code>docker-compose</code>.</p>
  <pre><code>mysql:
      image: mysql/5.7:configured (Little changes like enabling queries...)
  environment:
       - MYSQL_ROOT_PASSWORD=debezium
       - MYSQL_USER=mysqluser
       - MYSQL_PASSWORD=mysqlpw
      volumes:
       - &quot;sql_Data:/var/lib/mysql&quot;
       - &quot;sql_LogError:/var/log/mysql&quot;
  
  kafka:
      image: debezium/kafka:0.8
      depends_on:
       - zookeeper
      environment:
       - HOST_NAME=xxxx
       - ADVERTISED_HOST_NAME=xxxx
       - ZOOKEEPER_CONNECT=zookeeper:2181
       - KAFKA_CREATE_TOPICS=&quot;events:1:1&quot;
       - KAFKA_LOG_RETENTION_MS=-1
      volumes:
            - &quot;kafka_Data:/kafka/data&quot; 
            - &quot;kafka_Log:/kafka/logs&quot;
            - &quot;kafka_Conf:/kafka/config&quot;
  
  connect:
      image: debezium/connect:0.8
      depends_on:
       - zookeeper
       - kafka
       - mysql
      environment:
       - HOST_NAME=xxxx
       - ADVERTISED_HOST_NAME=xxxx
       - BOOTSTRAP_SERVERS=xxxx:9092
       - GROUP_ID=1
       - CONFIG_STORAGE_TOPIC=my_connect_configs
       - OFFSET_STORAGE_TOPIC=my_connect_offsets
       - STATUS_STORAGE_TOPIC=my_connect_statuses
  volumes: 
    sql_Data:
    sql_LogError:
    kafka_Data:
    kafka_Log:
    kafka_Conf:
  </code></pre>
  <p>And the other parts are only networks or not relevant things.</p>