hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1483238 - in /hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs: CHANGES.txt src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
Date Thu, 16 May 2013 08:16:08 GMT
Author: atm
Date: Thu May 16 08:16:07 2013
New Revision: 1483238

URL: http://svn.apache.org/r1483238
Log:
HDFS-4787. Create a new HdfsConfiguration before each TestDFSClientRetries testcases. Contributed
by Tian Hong Wang.

Modified:
    hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
    hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java

Modified: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1483238&r1=1483237&r2=1483238&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original)
+++ hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Thu May 16
08:16:07 2013
@@ -264,6 +264,9 @@ Release 2.0.5-beta - UNRELEASED
     HDFS-3180. Add socket timeouts to WebHdfsFileSystem.  (Chris Nauroth via
     szetszwo)
 
+    HDFS-4787. Create a new HdfsConfiguration before each TestDFSClientRetries
+    testcases. (Tian Hong Wang via atm)
+
   BREAKDOWN OF HDFS-347 SUBTASKS AND RELATED JIRAS
 
     HDFS-4353. Encapsulate connections to peers in Peer and PeerServer classes.

Modified: hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java?rev=1483238&r1=1483237&r2=1483238&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
(original)
+++ hadoop/common/branches/branch-2/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
Thu May 16 08:16:07 2013
@@ -90,6 +90,7 @@ import org.apache.hadoop.util.Time;
 import org.apache.log4j.Level;
 import org.junit.Assert;
 import org.junit.Test;
+import org.junit.Before;
 import org.mockito.Mockito;
 import org.mockito.internal.stubbing.answers.ThrowsException;
 import org.mockito.invocation.InvocationOnMock;
@@ -107,7 +108,7 @@ public class TestDFSClientRetries {
   final static private int MIN_SLEEP_TIME = 1000;
   public static final Log LOG =
     LogFactory.getLog(TestDFSClientRetries.class.getName());
-  final static private Configuration conf = new HdfsConfiguration();
+  static private Configuration conf = null;
  
  private static class TestServer extends Server {
     private boolean sleep;
@@ -157,6 +158,11 @@ public class TestDFSClientRetries {
     }
   }
   
+  @Before
+  public void setupConf(){
+    conf = new HdfsConfiguration();
+  }
+  
   /**
    * This makes sure that when DN closes clients socket after client had
    * successfully connected earlier, the data can still be fetched.



Mime
View raw message