Github user mrszg commented on the pull request:

    https://github.com/apache/spark/pull/10089#issuecomment-163532836
  
    Original code (before this patch) has serious error - it doesn't respect 
maxRateLimitPerPartition in case when backpressure rate is smaller than number 
of partitions. In such case effectiveRateLimitPerPartition equals 0 (because 
limit / numPartitions == 0) and in consequence all messages from topic are 
consumed at once. According my tests this patch solves this error.  


---
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