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
- is broken by
-
ACCUMULO-1009 Support encryption over the wire
- Resolved
- supercedes
-
ACCUMULO-3495 Proxy server should verify a valid instance name before starting
- Resolved