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

ZooKeeperInstance lazy load instanceId

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • client
    • None

    Description

      I was unit testing the serialization of ZooKeeperInstance settings in a mapreduce job, and discovered that I couldn't deserialize and construct the ZooKeeperInstance unless the hostnames were valid and ZK was running.

      It should be possible to construct an instance of ZooKeeperInstance without trying to connect.

      It is unintuitive that it immediately tries to connect to ZooKeeper when it is constructed, instead of waiting until getInstanceId() is called.

      The constructor should only construct the object... not do work.

      Attachments

        Issue Links

          Activity

            People

              mberman Michael Berman
              ctubbsii Christopher Tubbs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: