Class PropStoreZooKeeperIT


  • @Tag("ZooKeeperTestingServer")
    public class PropStoreZooKeeperIT
    extends Object
    • Constructor Detail

      • PropStoreZooKeeperIT

        public PropStoreZooKeeperIT()
    • Method Detail

      • setupZk

        @BeforeAll
        public static void setupZk()
      • shutdownZK

        @AfterAll
        public static void shutdownZK()
                               throws Exception
        Throws:
        Exception
      • 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
      • 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.