[ 
https://issues.apache.org/jira/browse/KAFKA-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guozhang Wang updated KAFKA-2191:
---------------------------------
    Reviewer: Joel Koshy  (was: Guozhang Wang)

[~jjkoshy] Could you help taking a look at this one or could you give me a 
heads-up on the context?

> Measured rate should not be infinite
> ------------------------------------
>
>                 Key: KAFKA-2191
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2191
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Dong Lin
>            Assignee: Dong Lin
>         Attachments: KAFKA-2191.patch, KAFKA-2191.patch, 
> KAFKA-2191_2015-05-13_15:32:15.patch, KAFKA-2191_2015-05-14_00:34:30.patch
>
>
> Rate.measure() is called, it calculates elapsed time as now - 
> stat.oldest(now).lastWindowMs. But the stat.oldest(now) may equal now due to 
> the way SampledStat is implemented. As a result, Rate.measure() may return 
> Infinite. 
> This bug needs to be fixed in order for quota implementation to work properly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to