[
https://issues.apache.org/jira/browse/KAFKA-5559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16133156#comment-16133156
]
Guozhang Wang commented on KAFKA-5559:
--------------------------------------
[~onurkaraman] [~xiaotao183] There are some further discussions about
motivations to change the current behavior in the PR
https://github.com/apache/kafka/pull/3328.
Regarding whether we should recommend multiple clients sharing the same
{{client.id}}, personally I would suggest not doing that with the reasons I
gave in that PR.
Regarding this issue specifically, I am fine with either changing the current
behavior to be consistent as in `JmxReporter`, i.e. un-register and
re-register, leaving the door open that users may un-intentionally loose one
app info, or be more strict to throw exceptions.
> Metrics should throw if two client registers with same ID
> ---------------------------------------------------------
>
> Key: KAFKA-5559
> URL: https://issues.apache.org/jira/browse/KAFKA-5559
> Project: Kafka
> Issue Type: Bug
> Components: metrics
> Affects Versions: 0.11.0.0
> Reporter: Matthias J. Sax
> Assignee: Matthias J. Sax
>
> Currently, {{AppInfoParser}} only logs a WARN message when a bean is
> registered with an existing name. However, this should be treated as an error
> and the exception should be rthrown.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)