title: ms has passed since batch creation plus linger time
body: <p>I am using SQL 2.4.1v as consumer and Spring boot as producer for my Kafka topic. While I am trying to insert the records on to the topic, I am getting following error message:</p>
  <pre><code>WARN 12044 --- [ad | producer-1] o.a.k.clients.producer.internals.Sender  : [Producer clientId=producer-1] Got error produce response with correlation id 4457 on topic-partition TRANS_INBOUND-20, retrying (0 attempts left). Error: NETWORK_EXCEPTION
  WARN 12044 --- [ad | producer-1] o.a.k.clients.producer.internals.Sender  : [Producer clientId=producer-1] Received invalid metadata error in produce request on partition TRANS_INBOUND-20 due to org.apache.kafka.common.errors.NetworkException: The server disconnected before a response was received.. Going to request metadata update now
  ERROR 12044 --- [ad | producer-1] o.s.k.support.LoggingProducerListener    : Exception thrown when sending a message with key='1-356194-2018-01-02-STATUS' and payload='com.TransRecord@48323556' to topic TRANS_INBOUND:
  
  org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for TRANS_INBOUND-82: 501 ms has passed since batch creation plus linger time
  </code></pre>
  <p>Following are my producer settings:</p>
  <pre><code>    acks: 1
      retries: 1
      batchSize: 100
      lingerMs: 5
      bufferMemory: 33554432 
      requestTimeoutMs: 600
      autoOffsetReset: latest
      enableAutoCommit: false
      reconnectBackoffMaxMs: 1000
      reconnectBackoffMs: 50
      retryBackoffMs: 100
  </code></pre>
  <p>I have already tried with many combinations of batchSize, lingerMs and requestTimeoutMs, nothing is working. I still see the above errors quite often. What might be wrong here, and how can I fix this problem?</p>