[ https://issues.apache.org/jira/browse/KAFKA-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
paul mackles updated KAFKA-1005: -------------------------------- Attachment: ConsumerPerformance.scala.patch > 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 > Attachments: ConsumerPerformance.scala.patch > > > 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