diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/task/reduce/Fetcher.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/task/reduce/Fetcher.java index d8dd7b5f32b..be2f84f0175 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/task/reduce/Fetcher.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/task/reduce/Fetcher.java @@ -263,7 +263,7 @@ private DataInputStream openShuffleUrl(MapHost host, DataInputStream input = null; try { - setupConnectionsWithRetry(host, remaining, url); + setupConnectionsWithRetry(url); if (stopped) { abortConnect(host, remaining); } else { @@ -374,9 +374,8 @@ protected void copyFromHost(MapHost host) throws IOException { } } - private void setupConnectionsWithRetry(MapHost host, - Set remaining, URL url) throws IOException { - openConnectionWithRetry(host, remaining, url); + private void setupConnectionsWithRetry(URL url) throws IOException { + openConnectionWithRetry(url); if (stopped) { return; } @@ -396,8 +395,7 @@ private void setupConnectionsWithRetry(MapHost host, verifyConnection(url, msgToEncode, encHash); } - private void openConnectionWithRetry(MapHost host, - Set remaining, URL url) throws IOException { + private void openConnectionWithRetry(URL url) throws IOException { long startTime = Time.monotonicNow(); boolean shouldWait = true; while (shouldWait) {