HDFS-11637. Fix javac warning caused by the deprecated key used in 
TestDFSClientRetries#testFailuresArePerOperation. Contributed by Yiqun Lin.


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

Branch: refs/heads/HDFS-9806
Commit: 2fd568fdd416a8ea3a3fa8efe237a40a42fb7e03
Parents: aabf08d
Author: Yiqun Lin <yq...@apache.org>
Authored: Tue Apr 11 19:40:09 2017 +0800
Committer: Yiqun Lin <yq...@apache.org>
Committed: Tue Apr 11 19:40:09 2017 +0800

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2fd568fd/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
----------------------------------------------------------------------
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
index 6db70d5..bb5a8d8 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientRetries.java
@@ -370,7 +370,7 @@ public class TestDFSClientRetries {
     String file1 = "/testFile1";
     String file2 = "/testFile2";
     // Set short retry timeouts so this test runs faster
-    conf.setInt(DFSConfigKeys.DFS_CLIENT_RETRY_WINDOW_BASE, 10);
+    conf.setInt(HdfsClientConfigKeys.Retry.WINDOW_BASE_KEY, 10);
     conf.setInt(DFS_CLIENT_SOCKET_TIMEOUT_KEY, 2 * 1000);
     MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();
     try {


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

Reply via email to