HBASE-22694 Fallback to hbase.zookeeper.quorum if fs.hboss.sync.zk.connectionString...
authorJosh Elser <elserj@apache.org>
Mon, 15 Jul 2019 19:43:42 +0000 (15:43 -0400)
committerJosh Elser <elserj@apache.org>
Mon, 15 Jul 2019 20:43:36 +0000 (16:43 -0400)
commit27d36fd1d7c0a5b486999d260e0e2a2b2d2ccd8d
tree9840e10c54d9e36a6152ac97c00271a5b9a22051
parent6fa0ad90c8648f799f4e54ad87c96140c6e663ef
HBASE-22694 Fallback to hbase.zookeeper.quorum if fs.hboss.sync.zk.connectionString is undefined

Simple code change, but some refactoring to add testing for the change.

EmbeddedZK was made to be an object which we instantiate, rather than
static state and static methods. This lets us re-use the same code for
the contract tests without stomping on one-another.

Also adds in .gitignore entries for Eclipse metadata.

Closes #6

Signed-off-by: Sean Busbey <busbey@apache.org>
.gitignore
hbase-oss/src/main/java/org/apache/hadoop/hbase/oss/sync/ZKTreeLockManager.java
hbase-oss/src/test/java/org/apache/hadoop/hbase/oss/EmbeddedZK.java [deleted file]
hbase-oss/src/test/java/org/apache/hadoop/hbase/oss/TestUtils.java
hbase-oss/src/test/java/org/apache/hadoop/hbase/oss/sync/EmbeddedZK.java [new file with mode: 0644]
hbase-oss/src/test/java/org/apache/hadoop/hbase/oss/sync/TestZKLockManagerConfig.java [new file with mode: 0644]