MAPREDUCE-6587. Remove unused params in connection-related methods of Fetcher. Contributed by Yiqun Lin.
(cherry picked from commit 8cc4a67059e37b2083cd5468b35a64a403a3e3ae) (cherry picked from commit 41fe85f8688e6edd2a94ffd831d776e7c7a3614f)
This commit is contained in:
parent
0f9bed050d
commit
854af9cee1
@ -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<TaskAttemptID> 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<TaskAttemptID> remaining, URL url) throws IOException {
|
||||
private void openConnectionWithRetry(URL url) throws IOException {
|
||||
long startTime = Time.monotonicNow();
|
||||
boolean shouldWait = true;
|
||||
while (shouldWait) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user