GitHub user amethystic reopened a pull request:
https://github.com/apache/kafka/pull/2054
kafka-4295: ConsoleConsumer does not delete the temporary group in zookeeper
Since consumer stop logic and zk node removal code are in separate threads,
so when two threads execute in an interleaving manner, persistent node
'/consumers/' might not be removed for those console consumer groups which do
not specify "group.id". This will pollute Zookeeper with lots of inactive
console consumer offset information.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/amethystic/kafka
kafka-4295_ConsoleConsumer_fail_to_remove_zknode_onexit
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/2054.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2054
----
commit 872441963c67d3ec57c18690bef14ef5afbfb45a
Author: huxi <[email protected]>
Date: 2016-10-22T12:41:42Z
kafka-4295: kafka-console-consumer.sh does not delete the temporary group
in zookeeper
Author: huxi
Since consumer stop logic and zk node removal code are in separate threads,
so when two threads execute in an interleaving manner, persistent node
'/consumers/<consumer-group>' might not be removed for those console consumer
groups which do not specify "group.id". This will pollute Zookeeper with lots
of inactive console consumer offset information.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---