title: Consumer stop messages consuming from specific topic after some time of running
body: <p>Environment Information</p>
  <p>docker image based on node:12.13.1-alpine</p>
  <p>Node Version : 12.13.1</p>
  <p>node-rdkafka version : latest</p>
  <p>The below code snippet is working fine. But sometimes it's stopping reading messages from specific Kafka's partition (we are having about 20 topics (5 partitions each one) with same pattern). We are not getting any errors. After service restart and rebalance consuming continue as usual. Which tuning should be done to manage those stuck partitions?</p>
  <p>Throughput is low, it's about 150 messages for all topics per minute, each message is small JSON with some details (~500kb). We are running with 10 pods for specific service.</p>
  <pre><code>import { ConsumerStream, createReadStream } from 'node-rdkafka';
  
  const kafkaConsumer = createConsumerStream(shutdown, config.kafka.topics);
    kafkaConsumer.on('data', async (rawMessage) =&gt; {
      const {
        topic, partition, offset, value
      } = rawMessage;
  
      try {
        await processKafkaMessage(rawMessage);
        kafkaConsumer.consumer.commit({
          topic: topic,
          partition: partition,
          offset: offset + 1
        });
      } catch (err) {
        logger.error('Failed to process inbound kafka message');
      }
    });
  
  
  export const createConsumerStream = (shutdown, topics:Array&lt;string&gt;):ConsumerStream =&gt; {
    
    const globalConfig = {
      'metadata.broker.list': ['kafka:9092'],
      'group.id': 'my_group_1',
      'enable.auto.commit': false,
      'partition.assignment.strategy': 'roundrobin',
      'topic.metadata.refresh.interval.ms': 30 * 100,
      'batch.num.messages':  100000,
      'queued.max.messages.kbytes':  10000,
      'fetch.message.max.bytes': 10000,
      'fetch.max.bytes': 524288000,
      'retry.backoff.ms':  200,
      retries: 5
    };
  
    const topicConfig = { 'auto.offset.reset': 'earliest' };
  
    const streamOptions = {
      topics: topics,
      waitInterval: batchMaxTime,
      fetchSize: batchMaxSize
    };
  
    const stream:ConsumerStream = createReadStream(globalConfig, topicConfig, streamOptions);
    
    stream.on('error', (err) =&gt; {
      logger.error('Error in kafka consumer stream', {
        error_msg: err.message,
        error_name: err.name
      });
    });
  
    stream.consumer.on('event.error', (err) =&gt; {
      if (err.stack === 'Error: Local: Broker transport failure') return;
  
      logger.error('Error in kafka consumer');
  
      stream.emit('rd-kafka-error', err);
    });
  
    stream.consumer.on('rebalance', ({ message }, assignment) =&gt; {
      logger.info('Rebalance event', { assigned_topics: assignment });
    });
  
  </code></pre>