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

ZooKeeperInstance doesn't validate instance name on creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.6.0, 1.6.1
    • 1.6.2, 1.7.0
    • client
    • None

    Description

      ZooKeeperInstance in 1.5 contained a check when the instance name was used to ensure that a real instanceName was provided.

       public ZooKeeperInstance(String instanceName, String zooKeepers, int sessionTimeout) {
           ArgumentChecker.notNull(instanceName, zooKeepers);
           this.instanceName = instanceName;
           this.zooKeepers = zooKeepers;
           this.zooKeepersSessionTimeOut = sessionTimeout;
           zooCache = ZooCache.getInstance(zooKeepers, sessionTimeout);
           getInstanceID();
         }
      

      The call to getInstanceID() throws an exception if the instanceName didn't exist in ZK.

      In 1.6, this check no longer exists and will only happen when the ZKI is actually used (typically on getConnector(...)).

      Restore the check when the instance name is provided.

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m