title: Kafka Pausing partition and taking long time (10 min) in resuming it again
body: <p>I am using spring kafka with following configurations : </p>
  
  <pre><code>props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, 
  environment.getProperty("kafka.url"));
  props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, 
  StringDeserializer.class);
  props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, 
  KafkaAvroDeserializer.class);
  props.put("specific.avro.reader", true);
  props.put("schema.registry.url", 
  environment.getProperty("schema.registry.url"));
  props.put("session.timeout.ms", 120000);
  props.put("request.timeout.ms", 300000);
  props.put("max.partition.fetch.bytes", "10240");
  props.put("max.poll.interval.ms", 120000);
  props.put("max.poll.records", 100);
  </code></pre>
  
  <p>And </p>
  
  <pre><code>@Bean
  public ConcurrentKafkaListenerContainerFactory&lt;String, 
  List&lt;AlertNotificationPayload&gt;&gt; kafkaListenerContainerFactory() {
      ConcurrentKafkaListenerContainerFactory&lt;String, 
  List&lt;AlertNotificationPayload&gt;&gt; factory = new 
  ConcurrentKafkaListenerContainerFactory&lt;&gt;();
      factory.setConsumerFactory(consumerFactory());
      factory.setConcurrency(10);
  }
  </code></pre>
  
  <p>and as soon as I start the server, the consumers start consuming the messages but after a while, f<strong>ew partitions gets paused and doesn't resume for almost 9-10 min</strong>. The processing time in the consumer thread is in milliseconds and have separate thread for processing. I have tried multiple combinations of configurations but nothing worked.</p>
  
  <p>I have also tried to use the setting <strong>factory.getContainerProperties().setPauseEnabled(false);</strong>
  which stops the pause/resume but than the rebalance starts happening after some time and sooner and later the <strong>consumer gets died and after some time the consumer group has no consumer left</strong>.</p>
  
  <p>I am using following versions : </p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.springframework.kafka&lt;/groupId&gt;
          &lt;artifactId&gt;spring-kafka&lt;/artifactId&gt;
           &lt;version&gt;1.1.3.RELEASE&lt;/version&gt; //tried latest one as well
  &lt;/dependency&gt;
  &lt;dependency&gt;
          &lt;groupId&gt;io.confluent.maven&lt;/groupId&gt;
          &lt;artifactId&gt;kafka-connect-quickstart&lt;/artifactId&gt;
          &lt;version&gt;0.10.0.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
          &lt;groupId&gt;io.confluent&lt;/groupId&gt;
          &lt;artifactId&gt;kafka-avro-serializer&lt;/artifactId&gt;
          &lt;version&gt;3.2.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Please help.</p>