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 9F50118A4C for ; Fri, 10 Jul 2015 04:03:33 +0000 (UTC) Received: (qmail 29916 invoked by uid 500); 10 Jul 2015 04:03:33 -0000 Delivered-To: apmail-helix-user-archive@helix.apache.org Received: (qmail 29866 invoked by uid 500); 10 Jul 2015 04:03:33 -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 29856 invoked by uid 99); 10 Jul 2015 04:03:33 -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 04:03:33 +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 B5430181A4F for ; Fri, 10 Jul 2015 04:03:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 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_H2=-1.108, 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 60iQqmfZRTGa for ; Fri, 10 Jul 2015 04:03:32 +0000 (UTC) Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id D6EDA43A5B for ; Fri, 10 Jul 2015 04:03:31 +0000 (UTC) Received: by iecuq6 with SMTP id uq6so189377304iec.2 for ; Thu, 09 Jul 2015 21:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rAF4fr6pfvMsVX/0zPTwVv/Ew9JuR0MTxrW1Mlk+v3c=; b=U53/mpBJMY6Dn/pbAw5y7nF//ybTcmr7X7hqnguOTWRTLmKvUiUbdo2QY0e/5Hl8GF cbIQ++w6JbMLPVPC8pPJBnV2vsDf4ApsSSRf8U8shBDje8u1bQlcJVdfuUWyanirqlQf vfkIxpaw1G+koqt6ga93csuoegHulyWoDLCLMKdTNSBb7sV+F2NowdI7DwrPXgK8Z+Zh S+954xXWIpLxEr3CRhCeYt3och3+Pxhe4iCyAnDAmR9+3w2YWxMusCRULVYFgZ911z6c C9J5pzxFWLuGV88Ho8hn+0jSWJQLmwklqGk/d/MNLmIhWPhWdgET3pifP7hPIiQHRvbD 2rqg== MIME-Version: 1.0 X-Received: by 10.50.50.201 with SMTP id e9mr1263953igo.0.1436501011563; Thu, 09 Jul 2015 21:03:31 -0700 (PDT) Received: by 10.64.207.130 with HTTP; Thu, 9 Jul 2015 21:03:31 -0700 (PDT) Date: Thu, 9 Jul 2015 21:03:31 -0700 Message-ID: Subject: HelixManager is deprecated? From: Changgeng Li To: user@helix.apache.org Content-Type: multipart/alternative; boundary=047d7bd75bbe838e6d051a7d74d1 --047d7bd75bbe838e6d051a7d74d1 Content-Type: text/plain; charset=UTF-8 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); --047d7bd75bbe838e6d051a7d74d1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

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


Following code = print true in 0.6.2, but print false in 0.7.1
HelixManager helixManager =3D HelixManagerFactor=
y.getZKHelixManager(
"test-cluster"<= /span>,
&quo= t;localhost_9001",
InstanceType.CONTROLLER_PARTICIPANT= ,
&qu= ot;localhost:2181"
);
helixManager.connect();
Thread.<= span style=3D"font-style:italic">sleep(5000);
System.out.println("connected: " + helixManager.isCon= nected());
Thread.sleep(5000);
--047d7bd75bbe838e6d051a7d74d1--