You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by fp...@apache.org on 2022/05/09 08:56:19 UTC
[flink] branch release-1.15 updated: [FLINK-27480][kafka] Explain possible metrics InstanceAlreadyExistsException in docs
This is an automated email from the ASF dual-hosted git repository.
fpaul pushed a commit to branch release-1.15
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.15 by this push:
new f92da27b486 [FLINK-27480][kafka] Explain possible metrics InstanceAlreadyExistsException in docs
f92da27b486 is described below
commit f92da27b486ee555ac70b923fad9ca8784914397
Author: Fabian Paul <fa...@ververica.com>
AuthorDate: Tue May 3 14:26:28 2022 +0200
[FLINK-27480][kafka] Explain possible metrics InstanceAlreadyExistsException in docs
---
docs/content/docs/connectors/datastream/kafka.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/docs/content/docs/connectors/datastream/kafka.md b/docs/content/docs/connectors/datastream/kafka.md
index 8a1fbede6a0..2b62ebd02f2 100644
--- a/docs/content/docs/connectors/datastream/kafka.md
+++ b/docs/content/docs/connectors/datastream/kafka.md
@@ -307,6 +307,13 @@ For metrics of Kafka consumer, you can refer to
<a href="http://kafka.apache.org/documentation/#consumer_monitoring">Apache Kafka Documentation</a>
for more details.
+In case you experience a warning with a stack trace containing
+`javax.management.InstanceAlreadyExistsException: kafka.consumer:[...]`, you are probably trying to
+register multiple ```KafkaConsumers``` with the same client.id. The warning indicates that not all
+available metrics are correctly forwarded to the metrics system. You must ensure that a different
+```client.id.prefix``` for every ```KafkaSource``` is configured and that no other
+```KafkaConsumer``` in your job uses the same ```client.id```.
+
### Behind the Scene
{{< hint info >}}
If you are interested in how Kafka source works under the design of new data source API, you may