Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-131

ZookeeperInstance gets stuck when given bad host

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0, 1.4.1
    • 1.4.2
    • client
    • None

    Description

      Keith Massey reported the following issue on the mailing list.

      A user of our recently filed a bug with us because our code hung forever when she gave us an address for a zookeeper that was not running. I think I've traced the problem into org.apache.accumulo.core.zookeeper.ZooSession.connect(). If the connection to the zookeeper fails it throws a ConnectException, which gets caught by the catch (IOException) block, which logs the message and keeps trying infinitely. It's definitely user error passing in an invalid zookeeper. But shouldn't that method bail out after some time?
      Thanks.

      Keith

      Attachments

        1. ACCUMULO-131-1.patch
          1 kB
          Keith Turner

        Activity

          People

            ecn Eric C. Newton
            kturner Keith Turner
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: