kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ismael Juma (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-4856) Calling KafkaProducer.close() from multiple threads may cause spurious error
Date Tue, 22 Aug 2017 14:13:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-4856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ismael Juma resolved KAFKA-4856.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0
                   0.11.0.1

> Calling KafkaProducer.close() from multiple threads may cause spurious error
> ----------------------------------------------------------------------------
>
>                 Key: KAFKA-4856
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4856
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 0.9.0.0, 0.10.0.0, 0.10.2.0
>            Reporter: Xavier Léauté
>            Assignee: Manikumar
>            Priority: Minor
>             Fix For: 0.11.0.1, 1.0.0
>
>
> Calling {{KafkaProducer.close()}} from multiple threads simultaneously may cause the
following harmless error message to be logged. There appears to be a race-condition in {{AppInfoParser.unregisterAppInfo}}
that we don't guard against. 
> {noformat}
> WARN Error unregistering AppInfo mbean (org.apache.kafka.common.utils.AppInfoParser:71)
> javax.management.InstanceNotFoundException: kafka.producer:type=app-info,id=<client
id>
>     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
>     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427)
>     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415)
>     at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546)
>     at org.apache.kafka.common.utils.AppInfoParser.unregisterAppInfo(AppInfoParser.java:69)
>     at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:735)
>     at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:686)
>     at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:665)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message