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 0960218B74 for ; Fri, 10 Jul 2015 05:02:04 +0000 (UTC) Received: (qmail 11273 invoked by uid 500); 10 Jul 2015 05:02:04 -0000 Delivered-To: apmail-helix-user-archive@helix.apache.org Received: (qmail 11224 invoked by uid 500); 10 Jul 2015 05:02:03 -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 11214 invoked by uid 99); 10 Jul 2015 05:02:03 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 05:02:03 +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 43434181A4F for ; Fri, 10 Jul 2015 05:02:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id APMZAXDYQ7dY for ; Fri, 10 Jul 2015 05:02:02 +0000 (UTC) Received: from mail-yk0-f174.google.com (mail-yk0-f174.google.com [209.85.160.174]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 4835143DF2 for ; Fri, 10 Jul 2015 05:02:02 +0000 (UTC) Received: by ykee186 with SMTP id e186so54373665yke.2 for ; Thu, 09 Jul 2015 22:02:02 -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=Pe0IBuWXetsTC0wn07T9lxuTNQdnwrIe6reHLioyQPQ=; b=i7mzFc5aolkiZKNB/uSp3GKBWrng/4CR+i5FQP9iyqY5ji+o11QzT2t5AbSma5LYgP JRKaLYHuH3BFTjZuo0BP/NZLEVR38HD0zHBzb5aABUhWCFL8N/vurt0t0A20zS+wpsSe p+3+lOxC9aO+7zV4FzG3Dn690+7tVWpzgxx9vzs9o0wbjog/Bgr6ha7zGd4xOFplWyuF o6nyqEdzMM6ttCOBoZQJZ651y3Z6j010hzpi25Pc2WQiWmoW9eOOeCNN+mzdZpmdiHpk ySPeTm5TzTJCI3TGTbATi1TS+1FmoBdhRDP+ChJCihyfV6ksUMSg43peGZHTQByypybU scpQ== MIME-Version: 1.0 X-Received: by 10.13.193.198 with SMTP id c189mr20704183ywd.122.1436504522004; Thu, 09 Jul 2015 22:02:02 -0700 (PDT) Received: by 10.37.107.85 with HTTP; Thu, 9 Jul 2015 22:02:01 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 Jul 2015 22:02:01 -0700 Message-ID: Subject: Re: HelixManager is deprecated? From: Zhen Zhang To: "user@helix.apache.org" Content-Type: multipart/alternative; boundary=001a114e837ac0a0dc051a7e4535 --001a114e837ac0a0dc051a7e4535 Content-Type: text/plain; charset=UTF-8 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); > > --001a114e837ac0a0dc051a7e4535 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This seems to be a bug. Need to fix it. Created a jira to = track this:


On Thu, J= ul 9, 2015 at 9:03 PM, Changgeng Li <li.changgeng@gmail.com> wrote:
H= ello,

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


Following code print true in 0.6.2, but pri= nt false in 0.7.1
H=
elixManager helixManager =3D HelixManagerFactory.getZKHelixManager(
"test-cluster",
"localhost_9001",
InstanceType.CONTROLLER_PARTICIPANT,
"localhost:2181"
<= /span>);
helixManager.connect();
Thread.sleep(5000);
Syste= m.= out.println(&quo= t;connected: " + helixManager.isConnected());
Thread.sleep(= 5000);

--001a114e837ac0a0dc051a7e4535--