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

Dong Lin reassigned KAFKA-7098:
-------------------------------

    Assignee: Zhanxiang (Patrick) Huang  (was: Dong Lin)

> Improve accuracy of the log cleaner throttle rate
> -------------------------------------------------
>
>                 Key: KAFKA-7098
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7098
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Dong Lin
>            Assignee: Zhanxiang (Patrick) Huang
>            Priority: Major
>
> LogCleaner uses the Throttler class to throttler the log cleaning rate to the 
> user-specified limit, i.e. log.cleaner.io.max.bytes.per.second. However, in 
> Throttler.maybeThrottle(), the periodStartNs is set to the time before the 
> sleep after the sleep() is called, which artificially increase the actual 
> window size and under-estimate the actual log cleaning rate. This causes the 
> log cleaning IO to be higher than the user-specified limit.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to