[
https://issues.apache.org/jira/browse/KAFKA-622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Swapnil Ghike updated KAFKA-622:
--------------------------------
Attachment: kafka-622-v1.patch
The major change in this patch is to convert a bunch of *Stat objects to
classes, and instantiating one instance of each such class at the high level
Producer, ZookeeperConsumerConnector and AbstractFetcherThread level. This will
ensure that clients within the same service will have their own mbeans.
The mbean name will contain clientId, and the clientId is validated at the high
level Producer, ZookeeperConsumerConnector and AbstractFetcherThread level.
I have set max length of clientId to 200, because it will be appended with some
string while creating mbean, and the mbean name might be limited by filename
length.
Other changes are a bunch of import optimizations, and a test case for clientId
validation.
> Create mbeans per client
> -------------------------
>
> Key: KAFKA-622
> URL: https://issues.apache.org/jira/browse/KAFKA-622
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8
> Reporter: Swapnil Ghike
> Assignee: Swapnil Ghike
> Priority: Blocker
> Labels: bugs, improvement
> Fix For: 0.8
>
> Attachments: kafka-622-v1.patch
>
>
> Currently we create one mbean of each type for a given mbean server,
> regardless of the number of clients. We should create MBeans per client for
> both producer and consumer. To do that we need to introduce clientId in mbean
> names.
--
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