Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10701

First line of detailed stats from consumer-perf-test.sh incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • tools

    Description

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

      $ ./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
      

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

      Attachments

        Issue Links

          Activity

            People

              lijubjohn Liju
              mumrah David Arthur
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: