Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99C05DBA7 for ; Fri, 17 May 2013 18:17:16 +0000 (UTC) Received: (qmail 38889 invoked by uid 500); 17 May 2013 18:17:16 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 38828 invoked by uid 500); 17 May 2013 18:17:16 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 38819 invoked by uid 99); 17 May 2013 18:17:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 18:17:16 +0000 Date: Fri, 17 May 2013 18:17:16 +0000 (UTC) From: "Jeffrey Zhong (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-8539) Double(or tripple ...) ZooKeeper listeners of the same type when Master recovers from ZK SessionExpiredException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-8539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeffrey Zhong updated HBASE-8539: --------------------------------- Attachment: hbase-8539-addendum-04.patch [~apurtell] The latest addendum is to address the security build failures. I also run the full test suit against 0.94 unsecurity build and it passed. Thanks. > Double(or tripple ...) ZooKeeper listeners of the same type when Master recovers from ZK SessionExpiredException > ---------------------------------------------------------------------------------------------------------------- > > Key: HBASE-8539 > URL: https://issues.apache.org/jira/browse/HBASE-8539 > Project: HBase > Issue Type: Bug > Components: master > Affects Versions: 0.98.0, 0.94.7, 0.95.0 > Reporter: Jeffrey Zhong > Assignee: Jeffrey Zhong > Fix For: 0.98.0, 0.94.8, 0.95.1 > > Attachments: 8539-addendum-v2.patch, double-registered listeners.png, hbase-8539-0.94-addendum-03.patch, hbase-8539-0.94-addendum-04.patch, hbase-8539-0.94.patch, hbase-8539-addendum-03.patch, hbase-8539-addendum-04.patch, hbase-8539.patch, hbase-8539.patch > > > When Master tries to recover from zookeeper session expired exceptions, we don't clean old registered listener instances. Therefore, it may end up we have two(or more) listeners to double handling same events. Attached a screen shot from debugger to show the issue. > I considered to limit one listener per class while I think that would limit the listener usage so I choose to clear exiting listeners during recovery for the fix. > (This issue is unrelated to the issue HBASE-8365 because I verified there is no dup-listeners when HBASE-8365 happened) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira