[ 
https://issues.apache.org/jira/browse/KAFKA-9977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146149#comment-18146149
 ] 

Pranav Siby commented on KAFKA-9977:
------------------------------------

This looks fixed on trunk by [https://github.com/apache/kafka/pull/10910] 
(KAFKA-12965), released in 3.4.0. When a task stops, 
{{WorkerTask.removeMetrics()}} now also closes its error-handling metrics. I 
checked on current trunk with an embedded Connect cluster: the 
{{task-error-metrics}} MBeans exist for each running task and are gone after 
the connector is deleted. Could a committer close this as a duplicate of 
KAFKA-12965? That ticket also looks like it can be resolved.

> Kafka Connect Task level error metrics exposed via JMX not removed on 
> connector delete
> --------------------------------------------------------------------------------------
>
>                 Key: KAFKA-9977
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9977
>             Project: Kafka
>          Issue Type: Bug
>          Components: connect
>    Affects Versions: 2.3.1
>            Reporter: Tharindu
>            Priority: Major
>              Labels: metrics
>
> When collecting metrics at a task level exposed via JMX it was noticed that 
> task level metrics reported under 
> *_kafka.connect:type=task-error-metrics,connector="\{connector}",task="\{task}"_*
> were not being removed on connector deletion resulting in us collecting 
> metrics for tasks no longer active. 
> In the source code I could not find a point where these metrics were cleaned 
> up. 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to