Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9EA191670AB for ; Tue, 22 Aug 2017 16:13:03 +0200 (CEST) Received: (qmail 29396 invoked by uid 500); 22 Aug 2017 14:13:02 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 29385 invoked by uid 99); 22 Aug 2017 14:13:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2017 14:13:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1F20F180236 for ; Tue, 22 Aug 2017 14:13:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PcM9ab5kosN2 for ; Tue, 22 Aug 2017 14:13:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 104B45FDB8 for ; Tue, 22 Aug 2017 14:13:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9741EE01D8 for ; Tue, 22 Aug 2017 14:13:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 516172537E for ; Tue, 22 Aug 2017 14:13:00 +0000 (UTC) Date: Tue, 22 Aug 2017 14:13:00 +0000 (UTC) From: "Ismael Juma (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KAFKA-4856) Calling KafkaProducer.close() from multiple threads may cause spurious error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-4856?page=3Dcom.atlassia= n.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 er= ror > -------------------------------------------------------------------------= --- > > 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=C3=A9aut=C3=A9 > Assignee: Manikumar > Priority: Minor > Fix For: 0.11.0.1, 1.0.0 > > > Calling {{KafkaProducer.close()}} from multiple threads simultaneously ma= y cause the following harmless error message to be logged. There appears to= be a race-condition in {{AppInfoParser.unregisterAppInfo}} that we don't g= uard against.=20 > {noformat} > WARN Error unregistering AppInfo mbean (org.apache.kafka.common.utils.App= InfoParser:71) > javax.management.InstanceNotFoundException: kafka.producer:type=3Dapp-inf= o,id=3D > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Def= aultMBeanServerInterceptor.java:1095) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnr= egisterMBean(DefaultMBeanServerInterceptor.java:427) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMB= ean(DefaultMBeanServerInterceptor.java:415) > at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanSer= ver.java:546) > at org.apache.kafka.common.utils.AppInfoParser.unregisterAppInfo(AppI= nfoParser.java:69) > at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProduce= r.java:735) > at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProduce= r.java:686) > at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProduce= r.java:665) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)