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

David Arthur updated KAFKA-10701:
---------------------------------
    Description: 
When running the console perf test with {{--show-detailed-stats}}, the first 
line out of output has incorrect results

{code}
$ ./bin/kafka-consumer-perf-test.sh --bootstrap-server localhost:9092 --topic 
test --messages 10000000 --reporting-interval 1000 --show-detailed-stats
time, threadId, data.consumed.in.MB, MB.sec, data.consumed.in.nMsg, nMsg.sec, 
rebalance.time.ms, fetch.time.ms, fetch.MB.sec, fetch.nMsg.sec
2020-11-06 11:57:01:420, 0, 275.3878, 275.3878, 288765, 288765.0000, 
1604681820723, -1604681819723, 0.0000, 0.0000
2020-11-06 11:57:02:420, 0, 952.1456, 676.7578, 998397, 709632.0000, 0, 1000, 
676.7578, 709632.0000
2020-11-06 11:57:03:420, 0, 1654.2940, 702.1484, 1734653, 736256.0000, 0, 1000, 
702.1484, 736256.0000
2020-11-06 11:57:04:420, 0, 2492.1389, 837.8448, 2613197, 878544.0000, 0, 1000, 
837.8448, 878544.0000
2020-11-06 11:57:05:420, 0, 3403.2993, 911.1605, 3568618, 955421.0000, 0, 1000, 
911.1605, 955421.0000
2020-11-06 11:57:06:420, 0, 4204.1540, 800.8547, 4408375, 839757.0000, 0, 1000, 
800.8547, 839757.0000
2020-11-06 11:57:07:420, 0, 4747.1275, 542.9735, 4977724, 569349.0000, 0, 1000, 
542.9735, 569349.0000
2020-11-06 11:57:08:420, 0, 5282.2266, 535.0990, 5538816, 561092.0000, 0, 1000, 
535.0990, 561092.0000
2020-11-06 11:57:09:420, 0, 5824.3732, 542.1467, 6107298, 568482.0000, 0, 1000, 
542.1467, 568482.0000
{code}

This seems to be due to incorrect initialization of the {{joinStart}} variable 
in the consumer perf test code.

  was:
When running the console perf test with {{--show-detailed-stats}}, the first 
line out of output has incorrect results

{code}
$ ./bin/kafka-consumer-perf-test.sh --bootstrap-server localhost:9092 --topic 
test --messages 10000000 --reporting-interval 1000 --show-detailed-stats
time, threadId, data.consumed.in.MB, MB.sec, data.consumed.in.nMsg, nMsg.sec, 
rebalance.time.ms, fetch.time.ms, fetch.MB.sec, fetch.nMsg.sec
2020-11-06 11:57:01:420, 0, 275.3878, 275.3878, 288765, 288765.0000, 
1604681820723, -1604681819723, 0.0000, 0.0000
2020-11-06 11:57:02:420, 0, 952.1456, 676.7578, 998397, 709632.0000, 0, 1000, 
676.7578, 709632.0000
2020-11-06 11:57:03:420, 0, 1654.2940, 702.1484, 1734653, 736256.0000, 0, 1000, 
702.1484, 736256.0000
2020-11-06 11:57:04:420, 0, 2492.1389, 837.8448, 2613197, 878544.0000, 0, 1000, 
837.8448, 878544.0000
2020-11-06 11:57:05:420, 0, 3403.2993, 911.1605, 3568618, 955421.0000, 0, 1000, 
911.1605, 955421.0000
2020-11-06 11:57:06:420, 0, 4204.1540, 800.8547, 4408375, 839757.0000, 0, 1000, 
800.8547, 839757.0000
2020-11-06 11:57:07:420, 0, 4747.1275, 542.9735, 4977724, 569349.0000, 0, 1000, 
542.9735, 569349.0000
2020-11-06 11:57:08:420, 0, 5282.2266, 535.0990, 5538816, 561092.0000, 0, 1000, 
535.0990, 561092.0000
2020-11-06 11:57:09:420, 0, 5824.3732, 542.1467, 6107298, 568482.0000, 0, 1000, 
542.1467, 568482.0000
{code}

This seems to be due to incorrect initialization of the {joinStart} variable. 


> First line of detailed stats from consumer-perf-test.sh incorrect
> -----------------------------------------------------------------
>
>                 Key: KAFKA-10701
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10701
>             Project: Kafka
>          Issue Type: Bug
>          Components: tools
>            Reporter: David Arthur
>            Priority: Minor
>              Labels: newbie
>
> When running the console perf test with {{--show-detailed-stats}}, the first 
> line out of output has incorrect results
> {code}
> $ ./bin/kafka-consumer-perf-test.sh --bootstrap-server localhost:9092 --topic 
> test --messages 10000000 --reporting-interval 1000 --show-detailed-stats
> time, threadId, data.consumed.in.MB, MB.sec, data.consumed.in.nMsg, nMsg.sec, 
> rebalance.time.ms, fetch.time.ms, fetch.MB.sec, fetch.nMsg.sec
> 2020-11-06 11:57:01:420, 0, 275.3878, 275.3878, 288765, 288765.0000, 
> 1604681820723, -1604681819723, 0.0000, 0.0000
> 2020-11-06 11:57:02:420, 0, 952.1456, 676.7578, 998397, 709632.0000, 0, 1000, 
> 676.7578, 709632.0000
> 2020-11-06 11:57:03:420, 0, 1654.2940, 702.1484, 1734653, 736256.0000, 0, 
> 1000, 702.1484, 736256.0000
> 2020-11-06 11:57:04:420, 0, 2492.1389, 837.8448, 2613197, 878544.0000, 0, 
> 1000, 837.8448, 878544.0000
> 2020-11-06 11:57:05:420, 0, 3403.2993, 911.1605, 3568618, 955421.0000, 0, 
> 1000, 911.1605, 955421.0000
> 2020-11-06 11:57:06:420, 0, 4204.1540, 800.8547, 4408375, 839757.0000, 0, 
> 1000, 800.8547, 839757.0000
> 2020-11-06 11:57:07:420, 0, 4747.1275, 542.9735, 4977724, 569349.0000, 0, 
> 1000, 542.9735, 569349.0000
> 2020-11-06 11:57:08:420, 0, 5282.2266, 535.0990, 5538816, 561092.0000, 0, 
> 1000, 535.0990, 561092.0000
> 2020-11-06 11:57:09:420, 0, 5824.3732, 542.1467, 6107298, 568482.0000, 0, 
> 1000, 542.1467, 568482.0000
> {code}
> This seems to be due to incorrect initialization of the {{joinStart}} 
> variable in the consumer perf test code.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to