Skip to content

Commit e97b40b

Browse files
committed
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
1 parent 3e42a67 commit e97b40b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,9 @@ Release 2.4.0 - UNRELEASED
700700

701701
HDFS-6062. TestRetryCacheWithHA#testConcat is flaky. (Jing Zhao via wheat9)
702702

703+
HDFS-6059. TestBlockReaderLocal fails if native library is not available.
704+
(Akira AJISAKA via Colin Patrick McCabe)
705+
703706
BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS
704707

705708
HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9)

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderLocal.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
import org.junit.BeforeClass;
4848
import org.junit.Test;
4949

50+
import static org.hamcrest.CoreMatchers.equalTo;
51+
5052
public class TestBlockReaderLocal {
5153
private static TemporarySocketDirectory sockDir;
5254

@@ -117,6 +119,7 @@ public void doTest(BlockReaderLocal reader, byte original[])
117119

118120
public void runBlockReaderLocalTest(BlockReaderLocalTest test,
119121
boolean checksum, long readahead) throws IOException {
122+
Assume.assumeThat(DomainSocket.getLoadingFailureReason(), equalTo(null));
120123
MiniDFSCluster cluster = null;
121124
HdfsConfiguration conf = new HdfsConfiguration();
122125
conf.setBoolean(DFSConfigKeys.

0 commit comments

Comments
 (0)