You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by "Zhen Zhang (JIRA)" <ji...@apache.org> on 2015/07/10 07:02:04 UTC
[jira] [Created] (HELIX-605) Fix 0.7 HelixManager.isConnected() bug
Zhen Zhang created HELIX-605:
--------------------------------
Summary: Fix 0.7 HelixManager.isConnected() bug
Key: HELIX-605
URL: https://issues.apache.org/jira/browse/HELIX-605
Project: Apache Helix
Issue Type: Bug
Reporter: Zhen Zhang
The following code doesn't work:
{noformat}
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);
{noformat}
The new API doesn't work either:
{noformat}
HelixConnection connection = new ZkHelixConnection("localhost:2181");
connection.connect();
// start multi-cluster-controller
ClusterId clusterId = ClusterId.from("test-cluster");
ControllerId controllerId = ControllerId.from("localhost_9001");
HelixMultiClusterController controller
= connection.createMultiClusterController(clusterId, controllerId);
controller.start();
System.out.println("controller connected: " + controller.isStarted());
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)