hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jzh...@apache.org
Subject hadoop git commit: HDFS-11685. TestDistributedFileSystem.java fails to compile. Contributed by John Zhuge.
Date Thu, 20 Apr 2017 05:11:10 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 efb790b0d -> 5046a4550


HDFS-11685. TestDistributedFileSystem.java fails to compile. Contributed by John Zhuge.


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

Branch: refs/heads/branch-2
Commit: 5046a45507f864bc0a7e21a5a1fdb7dfd37bd34a
Parents: efb790b
Author: John Zhuge <jzhuge@apache.org>
Authored: Wed Apr 19 19:20:43 2017 -0700
Committer: John Zhuge <jzhuge@apache.org>
Committed: Wed Apr 19 22:10:18 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/5046a455/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java
index 98bffd6..24aa1be 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java
@@ -1241,7 +1241,7 @@ public class TestDistributedFileSystem {
           return null;
         }
       }).when(injector).getHdfsBlocksMetadata();
-      DataNodeFaultInjector.instance = injector;
+      DataNodeFaultInjector.set(injector);
 
       BlockStorageLocation[] locs = fs.getFileBlockStorageLocations(allLocs);
       for (BlockStorageLocation loc: locs) {
@@ -1251,7 +1251,7 @@ public class TestDistributedFileSystem {
       }
 
       // Restore a default injector
-      DataNodeFaultInjector.instance = new DataNodeFaultInjector();
+      DataNodeFaultInjector.set(new DataNodeFaultInjector());
 
       // Stop a datanode to simulate a failure.
       DataNodeProperties stoppedNode = cluster.stopDataNode(0);


---------------------------------------------------------------------
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