From 9f0d3412f88c61c83a20cc46adce866ccf4fdc7c Mon Sep 17 00:00:00 2001 From: Mukul Kumar Singh Date: Tue, 28 May 2019 14:18:25 +0200 Subject: [PATCH] HDDS-1533. JVM exit on TestHddsDatanodeService Closes #859 --- .../java/org/apache/hadoop/ozone/TestHddsDatanodeService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/TestHddsDatanodeService.java b/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/TestHddsDatanodeService.java index f54fa75acf..af56d0643d 100644 --- a/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/TestHddsDatanodeService.java +++ b/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/TestHddsDatanodeService.java @@ -65,13 +65,13 @@ public void tearDown() { public void testStartup() throws IOException { service = HddsDatanodeService.createHddsDatanodeService(args); service.start(conf); - service.join(); assertNotNull(service.getDatanodeDetails()); assertNotNull(service.getDatanodeDetails().getHostName()); assertFalse(service.getDatanodeStateMachine().isDaemonStopped()); service.stop(); + service.join(); service.close(); }