Github user koeninger commented on the issue:

    https://github.com/apache/spark/pull/15387
  
    If the concern is TD's comment,
    "Future calls to {@link #poll(long)} will not return any records from these 
partitions until they have been resumed using {@link #resume(Collection)}."
    
https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java#L1353
    
    During the original implementation I had verified that calling pause kills 
the internal message buffer, which is one of the complications leading to a 
cached consumer per partition.
    
    I really don't think it's going to happen, but the assert is in there for 
paranoia, and to be explicit about the conditions.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to