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 1137618CAD for ; Fri, 10 Jul 2015 05:38:42 +0000 (UTC) Received: (qmail 75627 invoked by uid 500); 10 Jul 2015 05:38:42 -0000 Delivered-To: apmail-helix-user-archive@helix.apache.org Received: (qmail 75583 invoked by uid 500); 10 Jul 2015 05:38:42 -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 75573 invoked by uid 99); 10 Jul 2015 05:38:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 05:38:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of li.changgeng@gmail.com designates 209.85.213.170 as permitted sender) Received: from [209.85.213.170] (HELO mail-ig0-f170.google.com) (209.85.213.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 05:36:27 +0000 Received: by igpy18 with SMTP id y18so5811663igp.0 for ; Thu, 09 Jul 2015 22:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AFLwnCzig4rrGqIa/qOFjvEQY9+ZNN2djK85wuO+Tg0=; b=ZZ9wI9nb/LoXoBrmOjUS/Xy/S8X7kPiOtg84lR7Pp9eAmG0IHhHyliWNPVOIHkmzzt QQyFeW2jN0WflDwPsJlzYKEd/UtaAobsXdmF599f6l+gqJploW2bmDRCKK2WRqSa3W+9 GAAPtTY+hSihbqaV1TsxnqMn9IR2Yv8os7jg8jtPvpMBGj00O0uQ0B4f4fYxYUAYXuTE O44nixJvyLt7L2NrLB+HrQVL1psdDC2r9ppHQaFov+vRMFRhXSP/IH+qCgiTxTgbRFFN U4gAT4xQhUFSaKwqHRlUQNoliDlFjW78hwRmuxKMGLNeHni0gK+MOZdetFFHJHL2iCMX Ws2A== MIME-Version: 1.0 X-Received: by 10.107.157.4 with SMTP id g4mr30410098ioe.66.1436506694057; Thu, 09 Jul 2015 22:38:14 -0700 (PDT) Received: by 10.64.207.130 with HTTP; Thu, 9 Jul 2015 22:38:13 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 Jul 2015 22:38:13 -0700 Message-ID: Subject: Re: HelixManager is deprecated? From: Changgeng Li To: user@helix.apache.org Content-Type: multipart/alternative; boundary=001a1141ba043787ad051a7ec7e6 X-Virus-Checked: Checked by ClamAV on apache.org --001a1141ba043787ad051a7ec7e6 Content-Type: text/plain; charset=UTF-8 any recommendation workaround before this is fixed? Seems the latest tutorial is updated not to use HelixManager for controller and participant. On Thu, Jul 9, 2015 at 10:02 PM, Zhen Zhang wrote: > This seems to be a bug. Need to fix it. Created a jira to track this: > https://issues.apache.org/jira/browse/HELIX-605 > > > On Thu, Jul 9, 2015 at 9:03 PM, Changgeng Li > wrote: > >> Hello, >> >> We are relying on HelixManager.isConnected() method for health check. >> >> >> Following code print true in 0.6.2, but print false in 0.7.1 >> >> HelixManager helixManager = HelixManagerFactory.getZKHelixManager( >> "test-cluster", >> "localhost_9001", >> InstanceType.CONTROLLER_PARTICIPANT, >> "localhost:2181" >> ); >> helixManager.connect(); >> Thread.sleep(5000); >> System.out.println("connected: " + helixManager.isConnected()); >> Thread.sleep(5000); >> >> > --001a1141ba043787ad051a7ec7e6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
any recommendation workaround before this is fixed?
Seems the latest tutorial is updated not to use HelixManager fo= r controller and participant.

On Thu, Jul 9, 2015 at 10:02 PM, Zhen Zhang <nehzg= nahz@gmail.com> wrote:
This seems to be a bug. Need to fix it. Created a jira to trac= k this:

On Thu, Jul 9, 2015 at 9:03 PM, Changgeng Li <li.changgeng@gmail= .com> wrote:
Hello,

We are relying on HelixManager.isConnected= () method for health check.


Following code print true in = 0.6.2, but print false in 0.7.1
HelixManager helixManager =3D HelixManagerFactory.getZKHelixManager(
"test-cluster",
= "localhost_9= 001",
InstanceType.CONTROLLER_PARTICIPANT,
= "localhost:= 2181"
);
helixManager.connect();
Thread.sleep(5000);
System.out.println("connected: " + helixManager.isConnected());Thread.sleep(5000);


--001a1141ba043787ad051a7ec7e6--