Return-Path: X-Original-To: apmail-helix-user-archive@minotaur.apache.org Delivered-To: apmail-helix-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3387410D7D for ; Sun, 26 Jan 2014 20:13:50 +0000 (UTC) Received: (qmail 12229 invoked by uid 500); 26 Jan 2014 20:13:49 -0000 Delivered-To: apmail-helix-user-archive@helix.apache.org Received: (qmail 12150 invoked by uid 500); 26 Jan 2014 20:13:48 -0000 Mailing-List: contact user-help@helix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@helix.apache.org Delivered-To: mailing list user@helix.apache.org Received: (qmail 12143 invoked by uid 99); 26 Jan 2014 20:13:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jan 2014 20:13:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vinayakb@gmail.com designates 209.85.160.50 as permitted sender) Received: from [209.85.160.50] (HELO mail-pb0-f50.google.com) (209.85.160.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jan 2014 20:13:40 +0000 Received: by mail-pb0-f50.google.com with SMTP id rq2so5080755pbb.23 for ; Sun, 26 Jan 2014 12:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=yPqM6I39xsSIF3c/AKBisRlgpUqFnS0Nm5XsOGeLGcI=; b=r3uF8fve7Qp3RQL5Icj3CQo1PSHKk4lbtvnKn4thX3yGt8RJpswLz+xDDPvJ0twR8e SDy+Ye8NwFd1mtKgdA5EJlT5k1JfcscZ7ZmW6g6tVh9x2NnWDMEfsWolRbE3gqk+dfJM gZNbTSlWTRpmUPjitjLSUku4gjy+3Aw/I23dMMGItC0pBLzt7d7txeopoQhD0m47iQjg o3Uo+ZqArcKgKDqaA3qDeclMGimT2/9TvxR5MjjfCZXCZp1V1/bwgNAGkHDmR1hf+1Ei Dmn//93J/0D5i82gYzCUKndwVTS+qe6M5RjbuwYCL5XdO1XqqqpTlFL9uOT5yXf+r/Rs oAWw== X-Received: by 10.69.20.139 with SMTP id hc11mr26484540pbd.63.1390767199481; Sun, 26 Jan 2014 12:13:19 -0800 (PST) Received: from netbook.local (c-50-156-100-237.hsd1.ca.comcast.net. [50.156.100.237]) by mx.google.com with ESMTPSA id zc6sm66546752pab.18.2014.01.26.12.13.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 12:13:18 -0800 (PST) Message-ID: <52E56C5C.7000209@gmail.com> Date: Sun, 26 Jan 2014 12:13:16 -0800 From: Vinayak Borkar User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "user@helix.apache.org" Subject: Duplicate INIT in Controller Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am observing duplicate handlers being added to the controller and this is leading to INIT being called multiple times on the same handlers. Here is my code to start the controler, which looks fairly standard: @Override protected void doStart() throws SystemException { hManager = HelixManagerFactory.getZKHelixManager(clusterName, UUID.randomUUID().toString(), InstanceType.CONTROLLER, zkAddr); try { hManager.connect(); } catch (Exception e) { throw new SystemException(e); } GenericHelixController controller = new GenericHelixController(); HelixControllerMain.addListenersToController(hManager, controller); } Here are the log messages due to duplicate calls: 2014-01-26 12:11:16,721 WARN [CallbackHandler] Skip processing callbacks for listener: org.apache.helix.messaging.handling.HelixTaskExecutor@7f3076b2, path: /e78dead7-0c2f-4c5f-af7e-f25e8c170db1/CONTROLLER/MESSAGES, expected types: [CALLBACK, FINALIZE] but was INIT 2014-01-26 12:11:16,721 WARN [CallbackHandler] Skip processing callbacks for listener: org.apache.helix.controller.GenericHelixController@4db4bfda, path: /e78dead7-0c2f-4c5f-af7e-f25e8c170db1/CONFIGS/PARTICIPANT, expected types: [CALLBACK, FINALIZE] but was INIT 2014-01-26 12:11:16,721 WARN [CallbackHandler] Skip processing callbacks for listener: org.apache.helix.controller.GenericHelixController@4db4bfda, path: /e78dead7-0c2f-4c5f-af7e-f25e8c170db1/LIVEINSTANCES, expected types: [CALLBACK, FINALIZE] but was INIT 2014-01-26 12:11:16,721 WARN [CallbackHandler] Skip processing callbacks for listener: org.apache.helix.controller.GenericHelixController@4db4bfda, path: /e78dead7-0c2f-4c5f-af7e-f25e8c170db1/IDEALSTATES, expected types: [CALLBACK, FINALIZE] but was INIT 2014-01-26 12:11:16,721 WARN [CallbackHandler] Skip processing callbacks for listener: org.apache.helix.controller.GenericHelixController@4db4bfda, path: /e78dead7-0c2f-4c5f-af7e-f25e8c170db1/CONTROLLER, expected types: [CALLBACK, FINALIZE] but was INIT Thanks, Vinayak