Uploaded image for project: 'Apache Helix'
  1. Apache Helix
  2. HELIX-131

Connection timeout not set while connecting to zookeeper via zkHelixAdmin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.1-incubating
    • 0.6.2-incubating
    • helix-core
    • linux

    Description

      When passing in a Zookeeper address upon instantiation of ZkHelixAdmin, a timeout is not set, and hence an invalid zookeeper address causes it to keep retrying indefinitely. As per discussion with Kishore, the fix is:

      Fix is to change line 99 in ZkHelixAdmin.java _zkClient = new ZkClient(zkAddress); to _zkClient = new ZkClient(zkAddress, timeout* 1000);

      Thank you

      Attachments

        Activity

          People

            Unassigned Unassigned
            lancectk Lance Co Ting Keh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: