Browse Source

merge -r 1374349:1374350 from branch-2. FIXES: HADOOP-8697

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1374352 13f79535-47bb-0310-9956-ffa450edef68
Thomas Graves 12 years ago
parent
commit
8fc6f4976e

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -165,6 +165,9 @@ Release 0.23.3 - UNRELEASED
     HADOOP-8693. TestSecurityUtil fails intermittently with JDK7 (Trevor
     Robinson via tgraves)
 
+    HADOOP-8697. TestWritableName fails intermittently with JDK7 (Trevor
+    Robinson via tgraves)
+
 Release 0.23.2 - UNRELEASED 
 
   NEW FEATURES

+ 1 - 0
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestWritableName.java

@@ -83,6 +83,7 @@ public class TestWritableName extends TestCase {
     Configuration conf = new Configuration();
     String altName = testName + ".alt";
 
+    WritableName.setName(SimpleWritable.class, testName);
     WritableName.addName(SimpleWritable.class, altName);
 
     Class<?> test = WritableName.getClass(altName, conf);