keith-turner commented on a change in pull request #1088: Use LeaderLatch to
determine if oracle exists
URL: https://github.com/apache/fluo/pull/1088#discussion_r389124057
##########
File path:
modules/integration-tests/src/main/java/org/apache/fluo/integration/client/FluoAdminImplIT.java
##########
@@ -286,4 +289,29 @@ public void testNumOracles() throws Exception {
Assert.assertEquals(0, admin.numOracles());
}
}
+
+ @Test
+ public void testNumOraclesWithMissingOraclePath() throws Exception {
+ oserver.stop();
+ try (CuratorFramework curator = CuratorUtil.newAppCurator(config);
+ FluoAdminImpl admin = new FluoAdminImpl(config)) {
+ curator.start();
+ oserver.awaitLeaderElection(3, TimeUnit.SECONDS);
+ curator.delete().forPath(ZookeeperPath.ORACLE_SERVER);
+
+ assertEquals(0, admin.numOracles());
Review comment:
Nice test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services