title: Kafka Java Consumer does not pick up messages from where it last left off
body: <p>I am using <code>org.apache.kafka.clients.consumer.KafkaConsumer</code> in my application to process messages from Kafka. I notice the following behaviour in my app. If I kill my app and then restart it again, any messages that the kafka producer sends between this time interval is not picked up by the kafka consumer in my app when I bring the app up again. Here is how I configure my kafka consumer in my application</p>
  
  <pre><code>  val props = Map[String, Object](
    ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG -&gt; EnvironmentConfig.getKafkaBootStrapServers,
    ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG -&gt; classOf[StringDeserializer],
    ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG -&gt; classOf[StringDeserializer],
    ConsumerConfig.AUTO_OFFSET_RESET_CONFIG -&gt; "latest",
    ConsumerConfig.GROUP_ID_CONFIG -&gt; "myGrouop",
    ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG -&gt; (false: java.lang.Boolean))
  
  // Create the consumer using props.
  val consumer = new KafkaConsumer[String, String](props)
  </code></pre>
  
  <p>What am I missing here in my config? Please help!</p>