Class PropStoreZooKeeperIT
- java.lang.Object
-
- org.apache.accumulo.test.conf.store.PropStoreZooKeeperIT
-
@Tag("ZooKeeperTestingServer") public class PropStoreZooKeeperIT extends Object
-
-
Constructor Summary
Constructors Constructor Description PropStoreZooKeeperIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanupZnodes()
void
createNoProps()
Verify that when a config node does not exist, null is returned instead of an exception.void
createWithProps()
void
deleteTest()
void
deleteThroughWatcher()
Delete a node and validate delete is propogated via ZooKeeper watcher.void
externalChange()
Simulate change in props by process external to the prop store instance.void
failOnDuplicate()
static void
setupZk()
void
setupZnodes()
static void
shutdownZK()
void
update()
-
-
-
Method Detail
-
setupZk
@BeforeAll public static void setupZk()
-
setupZnodes
@BeforeEach public void setupZnodes()
-
cleanupZnodes
@AfterEach public void cleanupZnodes()
-
createNoProps
@Test public void createNoProps() throws InterruptedException, org.apache.zookeeper.KeeperException
Verify that when a config node does not exist, null is returned instead of an exception.- Throws:
InterruptedException
org.apache.zookeeper.KeeperException
-
failOnDuplicate
@Test public void failOnDuplicate() throws InterruptedException, org.apache.zookeeper.KeeperException
- Throws:
InterruptedException
org.apache.zookeeper.KeeperException
-
createWithProps
@Test public void createWithProps() throws InterruptedException, org.apache.zookeeper.KeeperException, IOException
- Throws:
InterruptedException
org.apache.zookeeper.KeeperException
IOException
-
update
@Test public void update() throws InterruptedException
- Throws:
InterruptedException
-
deleteTest
@Test public void deleteTest()
-
deleteThroughWatcher
@Test public void deleteThroughWatcher() throws InterruptedException
Delete a node and validate delete is propogated via ZooKeeper watcher. Uses multiple caches that should only be coordinating via ZooKeeper events. When a node is deleted, the ZooKeeper node deleted event should also clear the node from all caches.- Throws:
InterruptedException
- Any exception is a test failure.
-
externalChange
@Test public void externalChange() throws IOException, InterruptedException, org.apache.zookeeper.KeeperException
Simulate change in props by process external to the prop store instance.- Throws:
IOException
InterruptedException
org.apache.zookeeper.KeeperException
-
-