[ https://issues.apache.org/jira/browse/KAFKA-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao updated KAFKA-1807: --------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) > Improve accuracy of ProducerPerformance target throughput > --------------------------------------------------------- > > Key: KAFKA-1807 > URL: https://issues.apache.org/jira/browse/KAFKA-1807 > Project: Kafka > Issue Type: Improvement > Components: clients, tools > Affects Versions: 0.8.1.1 > Reporter: Ewen Cheslack-Postava > Assignee: Ewen Cheslack-Postava > Priority: Minor > Fix For: 0.8.3 > > Attachments: KAFKA-1807.patch > > > The code in ProducerPerformance that tries to match a target throughput is > very inaccurate because it doesn't account for time spent sending messages. > Since we have to get the current time to timestamp the messages, we can be > much more accurate by computing the current rate over the entire run and only > add to the sleep deficit if we're above the target rate. -- This message was sent by Atlassian JIRA (v6.3.4#6332)