From 99f2cde22585b3079ff60bd0a9e10b3643272c90 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sun, 20 Dec 2015 22:30:41 -0500 Subject: [PATCH] Fail fast if HDFS cluster shuts itself down --- test/fixtures/hdfs-fixture/src/main/java/hdfs/MiniHDFS.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/fixtures/hdfs-fixture/src/main/java/hdfs/MiniHDFS.java b/test/fixtures/hdfs-fixture/src/main/java/hdfs/MiniHDFS.java index 76be664c1da..6ad4a970da7 100644 --- a/test/fixtures/hdfs-fixture/src/main/java/hdfs/MiniHDFS.java +++ b/test/fixtures/hdfs-fixture/src/main/java/hdfs/MiniHDFS.java @@ -79,8 +79,5 @@ public class MiniHDFS { tmp = Files.createTempFile(baseDir, null, null); Files.write(tmp, Integer.toString(dfs.getNameNodePort()).getBytes(StandardCharsets.UTF_8)); Files.move(tmp, baseDir.resolve(PORT_FILE_NAME), StandardCopyOption.ATOMIC_MOVE); - - // don't rely on hadoop thread leaks, wait forever, until you kill me - Thread.sleep(Long.MAX_VALUE); } }