helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhen Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HELIX-605) Fix 0.7 HelixManager.isConnected() bug
Date Fri, 10 Jul 2015 05:02:04 GMT
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)

Mime
View raw message