You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "paul mackles (JIRA)" <ji...@apache.org> on 2013/08/09 04:34:47 UTC

[jira] [Created] (KAFKA-1005) kafka.perf.ConsumerPerformance not shutting down consumer

paul mackles created KAFKA-1005:
-----------------------------------

             Summary: kafka.perf.ConsumerPerformance not shutting down consumer
                 Key: KAFKA-1005
                 URL: https://issues.apache.org/jira/browse/KAFKA-1005
             Project: Kafka
          Issue Type: Bug
          Components: tools
            Reporter: paul mackles
            Priority: Minor


I have been using the consumer-perf and producer-perf scripts to try out different failure scenarios with 0.8. In one such test I had consumer-perf reading from a topic that was no longer being written to. While consumer-perf finished normally, I noticed that ConsumerOffsetChecker reported lags >0 for several partitions on my topic. I believe this is due to kafka.perf.ConsumerPerformance not calling shutdown on the consumer after all of the threads have completed. After adding the shutdown call, I was able to verify that lag=0 for all partitions on my test topic after consumer-perf finished normally.

This is pretty minor but since I am guessing the perf tools are used pretty heavily by newbies like myself, might as well make them right.

Patch attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira