From 5384914aa8543edb31a83d7194282b415cef82d4 Mon Sep 17 00:00:00 2001 From: Aaron Myers Date: Wed, 28 Mar 2012 19:05:36 +0000 Subject: [PATCH] HDFS-3143. TestGetBlocks.testGetBlocks is failing. Contributed by Arpit Gupta. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1306544 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ .../src/test/java/org/apache/hadoop/hdfs/TestGetBlocks.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index c872118d0b3..4a57ff77bc9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -260,6 +260,8 @@ Release 2.0.0 - UNRELEASED HDFS-3156. TestDFSHAAdmin is failing post HADOOP-8202. (atm) + HDFS-3143. TestGetBlocks.testGetBlocks is failing. (Arpit Gupta via atm) + BREAKDOWN OF HDFS-1623 SUBTASKS HDFS-2179. Add fencing framework and mechanisms for NameNode HA. (todd) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestGetBlocks.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestGetBlocks.java index b0878d1eb8c..c27895f1f95 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestGetBlocks.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestGetBlocks.java @@ -135,7 +135,7 @@ public class TestGetBlocks extends TestCase { namenode.getBlocks(new DatanodeInfo(), 2); } catch(RemoteException e) { getException = true; - assertTrue(e.getMessage().contains("IllegalArgumentException")); + assertTrue(e.getClassName().contains("HadoopIllegalArgumentException")); } assertTrue(getException); }