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

This commit is contained in:
Yiqun Lin 2017-04-11 19:40:09 +08:00
parent aabf08dd07
commit 2fd568fdd4

View File

@ -370,7 +370,7 @@ public void testLeaseRenewSocketTimeout() throws Exception
String file1 = "/testFile1"; String file1 = "/testFile1";
String file2 = "/testFile2"; String file2 = "/testFile2";
// Set short retry timeouts so this test runs faster // 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); conf.setInt(DFS_CLIENT_SOCKET_TIMEOUT_KEY, 2 * 1000);
MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build(); MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();
try { try {