title: Kafka trouble with multiple partitions
body: <p>If I use kafka topics with a single partition everything works fine. </p>
  
  <p>If I use 5 kafka servers and a topic with 10 partitions, the partitions that are assigned to the controlling broker start with an offset of -1. Messages sent to those partitions are lost.</p>
  
  <p>Combing through the logs I don't see any errors. Although I do see plenty of warnings that partitions are out of service  "INFO [ReplicaFetcher replicaId=1, leaderId=5, fetcherId=0] Retrying leaderEpoch request for partition __consumer_offsets-2 as the leader reported an error: UNKNOWN_TOPIC_OR_PARTITION "</p>
  
  <p>This was working fine until an os upgrade (dc/os) that enforces resource limits. I've increased resource allocation to comical proportions.</p>
  
  <p>Below is the output of kafdrop for the first 5 partitions of the __consumer_offsets topic prior to any data being written. </p>
  
  <p>Partition<br>
  First Offset<br>
  Last Offset 
  Size<br>
  Leader<br>
  Replicas<br>
  In Sync Replicas<br>
  Preferred Leader?<br>
  Under Replicated?</p>
  
  <pre><code>0   0   0   0   3   3,1,2,4,5   1,2,3,4,5   Yes No
  
  1   0   0   0   4   4,2,3,5,1   1,2,3,4,5   Yes No
  
  2   0   0   0   5   5,3,4,1,2   1,2,3,4,5   Yes No
  
  3   -1  -1  0   1   1,4,5,2,3   1,2,3,4,5   Yes No
  
  4   0   0   0   2   2,5,1,3,4   1,2,3,4,5   Yes No
  </code></pre>
  
  <p>At this point kafka server 1 is running and it's log looks fine. Server 1 is also identified as the controlling broker. </p>