Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
2.1.1
-
None
Description
when poll message, but there is no record,but consumer will apply 1000 byte memory;
fetched = new HashMap<>() is not good idea, it will apply memory in heap but there is no message;
I think fetched = new HashMap<>() will appear in records exist;
```
public Map<TopicPartition, List<ConsumerRecord<K, V>>> fetchedRecords() {
Map<TopicPartition, List<ConsumerRecord<K, V>>> fetched = new HashMap<>();
int recordsRemaining = maxPollRecords;
```