hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject [1/3] hadoop git commit: HDFS-11144. TestFileCreationDelete#testFileCreationDeleteParent fails wind bind exception. Contributed By Brahma Reddy Battula.
Date Mon, 21 Nov 2016 05:31:06 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 d29e3d0f5 -> f3649deca
  refs/heads/branch-2.8 402606323 -> 23ddb98e1
  refs/heads/trunk d232625f7 -> c68dad18a


HDFS-11144. TestFileCreationDelete#testFileCreationDeleteParent fails wind bind exception.
Contributed By Brahma Reddy Battula.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c68dad18
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c68dad18
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c68dad18

Branch: refs/heads/trunk
Commit: c68dad18ab5cdf01f3dea1bb5988f896609956b4
Parents: d232625
Author: Brahma Reddy Battula <brahma@apache.org>
Authored: Mon Nov 21 10:58:34 2016 +0530
Committer: Brahma Reddy Battula <brahma@apache.org>
Committed: Mon Nov 21 10:58:34 2016 +0530

----------------------------------------------------------------------
 .../org/apache/hadoop/hdfs/TestFileCreationDelete.java   | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/c68dad18/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreationDelete.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreationDelete.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreationDelete.java
index 47ce947..58e1194 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreationDelete.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreationDelete.java
@@ -46,7 +46,6 @@ public class TestFileCreationDelete {
     try {
       cluster.waitActive();
       fs = cluster.getFileSystem();
-      final int nnport = cluster.getNameNodePort();
 
       // create file1.
       Path dir = new Path("/foo");
@@ -68,22 +67,18 @@ public class TestFileCreationDelete {
       // rm dir
       fs.delete(dir, true);
 
-      // restart cluster with the same namenode port as before.
+      // restart cluster.
       // This ensures that leases are persisted in fsimage.
       cluster.shutdown();
       try {Thread.sleep(2*MAX_IDLE_TIME);} catch (InterruptedException e) {}
-      cluster = new MiniDFSCluster.Builder(conf).nameNodePort(nnport)
-                                                .format(false)
-                                                .build();
+      cluster = new MiniDFSCluster.Builder(conf).format(false).build();
       cluster.waitActive();
 
       // restart cluster yet again. This triggers the code to read in
       // persistent leases from fsimage.
       cluster.shutdown();
       try {Thread.sleep(5000);} catch (InterruptedException e) {}
-      cluster = new MiniDFSCluster.Builder(conf).nameNodePort(nnport)
-                                                .format(false)
-                                                .build();
+      cluster = new MiniDFSCluster.Builder(conf).format(false).build();
       cluster.waitActive();
       fs = cluster.getFileSystem();
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message