title: Kafka consumer does not start from latest message
body: <p>I want to have a Kafka Consumer which starts from the latest message in a topic.</p>
  
  <p>Here is the java code:</p>
  
  <pre><code>private static Properties properties = new Properties();
  private static KafkaConsumer&lt;String, String&gt; consumer;
  static
  {
      properties.setProperty("bootstrap.servers","localhost");
      properties.setProperty("enable.auto.commit", "true");
      properties.setProperty("key.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
      properties.setProperty("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
      properties.setProperty("group.id", "test");
      properties.setProperty("auto.offset.reset", "latest");
      consumer = new KafkaConsumer&lt;&gt;(properties);
  
      consumer.subscribe(Collections.singletonList("mytopic"));
  }
  
  @Override
  public StreamHandler call() throws Exception
  {
      while (true) 
      {
          ConsumerRecords&lt;String, String&gt; consumerRecords = consumer.poll(200);
          Iterable&lt;ConsumerRecord&lt;String, String&gt;&gt; records = consumerRecords.records("mytopic");
          for(ConsumerRecord&lt;String, String&gt; rec : records)
          {
              System.out.println(rec.value());
          }
      }
  }
  </code></pre>
  
  <p>Although the value for <em>auto.offset.reset</em> is <strong>latest</strong>, but the consumer starts form messages which belong to 2 days ago and then it catches up with the latest messages.</p>
  
  <p>What am I missing?</p>