[
https://issues.apache.org/jira/browse/KAFKA-7098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dong Lin resolved KAFKA-7098.
-----------------------------
Resolution: Fixed
> 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)