title: Kafka Connect | Cannot complete request because of a conflicting operation
body: <p>1) We have 3 node kafka &amp; kafka connect cluster</p>
  
  <p>2) We are running kafka-connect on kafka nodes only in distributed mode</p>
  
  <p>3) When i am trying to create a connector using below configuration : </p>
  
  <pre><code>    {
        "name": "connector-state-0",
        "config": {
          "connector.class": "io.debezium.connector.mysql.MySqlConnector",
          "database.user": "user",
          "database.server.id": "5023",
          "database.hostname": "hostname",
          "database.password": "password",
          "database.history.kafka.bootstrap.servers": "ip:9092",
          "database.history.kafka.topic": "topicname",
          "database.server.name": "prod",
          "database.port": "3306",
          "snapshot.mode": "when_needed",
          "include.schema.changes": "false",
          "table.whitelist": "country.state"
      }
     }
  </code></pre>
  
  <p>On the request to create a connector it is giving me below error on 2 of 3  nodes :</p>
  
  <pre><code>{"error_code":409,"message":"Cannot complete request because of a conflicting operation (e.g. worker rebalance)"}
  </code></pre>
  
  <p>On one of the node : I am able to create a connector but task didn't started and i can see below error in logs : </p>
  
  <pre><code>[2019-01-23 10:50:06,455] INFO 127.0.0.1 - - [23/Jan/2019:10:50:06 +0000] "POST /connectors/birdeye-connector-state-0/tasks?forward=true HTTP/1.1" 409 113  8 (org.apache.kafka.connect.runtime.rest.RestServer:60)
  [2019-01-23 10:50:06,462] INFO 127.0.0.1 - - [23/Jan/2019:10:50:06 +0000] "POST /connectors/birdeye-connector-state-0/tasks HTTP/1.1" 409 113  21 (org.apache.kafka.connect.runtime.rest.RestServer:60)
  [2019-01-23 10:50:06,466] ERROR Request to leader to reconfigure connector tasks failed (org.apache.kafka.connect.runtime.distributed.DistributedHerder:1020)
  org.apache.kafka.connect.runtime.rest.errors.ConnectRestException: Cannot complete request because of a conflicting operation (e.g. worker rebalance)
      at org.apache.kafka.connect.runtime.rest.RestClient.httpRequest(RestClient.java:97)
      at org.apache.kafka.connect.runtime.distributed.DistributedHerder$18.run(DistributedHerder.java:1017)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
  </code></pre>
  
  <p>I am not able to figure out what is causing the isssue. </p>