From 115e60b0dc81ca16e789b336a0b671f947f81576 Mon Sep 17 00:00:00 2001 From: Colin McCabe Date: Thu, 6 Mar 2014 18:52:22 +0000 Subject: [PATCH] HDFS-6059. TestBlockReaderLocal fails if native library not available (ajisakaa via cmccabe) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1574998 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../test/java/org/apache/hadoop/hdfs/TestBlockReaderLocal.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index d41439c3d7c..45eac0ed3d3 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -700,6 +700,9 @@ Release 2.4.0 - UNRELEASED HDFS-6062. TestRetryCacheWithHA#testConcat is flaky. (Jing Zhao via wheat9) + HDFS-6059. TestBlockReaderLocal fails if native library is not available. + (Akira AJISAKA via Colin Patrick McCabe) + BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderLocal.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderLocal.java index 91e24670ed0..10d25c614e9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderLocal.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderLocal.java @@ -47,6 +47,8 @@ import org.junit.Assume; import org.junit.BeforeClass; import org.junit.Test; +import static org.hamcrest.CoreMatchers.equalTo; + public class TestBlockReaderLocal { private static TemporarySocketDirectory sockDir; @@ -117,6 +119,7 @@ public class TestBlockReaderLocal { public void runBlockReaderLocalTest(BlockReaderLocalTest test, boolean checksum, long readahead) throws IOException { + Assume.assumeThat(DomainSocket.getLoadingFailureReason(), equalTo(null)); MiniDFSCluster cluster = null; HdfsConfiguration conf = new HdfsConfiguration(); conf.setBoolean(DFSConfigKeys.