MAPREDUCE-6587. Remove unused params in connection-related methods of Fetcher. Contributed by Yiqun Lin.
(cherry picked from commit8cc4a67059
) (cherry picked from commit41fe85f868
)
This commit is contained in:
parent
0f9bed050d
commit
854af9cee1
|
@ -263,7 +263,7 @@ class Fetcher<K,V> extends Thread {
|
||||||
DataInputStream input = null;
|
DataInputStream input = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
setupConnectionsWithRetry(host, remaining, url);
|
setupConnectionsWithRetry(url);
|
||||||
if (stopped) {
|
if (stopped) {
|
||||||
abortConnect(host, remaining);
|
abortConnect(host, remaining);
|
||||||
} else {
|
} else {
|
||||||
|
@ -374,9 +374,8 @@ class Fetcher<K,V> extends Thread {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupConnectionsWithRetry(MapHost host,
|
private void setupConnectionsWithRetry(URL url) throws IOException {
|
||||||
Set<TaskAttemptID> remaining, URL url) throws IOException {
|
openConnectionWithRetry(url);
|
||||||
openConnectionWithRetry(host, remaining, url);
|
|
||||||
if (stopped) {
|
if (stopped) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -396,8 +395,7 @@ class Fetcher<K,V> extends Thread {
|
||||||
verifyConnection(url, msgToEncode, encHash);
|
verifyConnection(url, msgToEncode, encHash);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openConnectionWithRetry(MapHost host,
|
private void openConnectionWithRetry(URL url) throws IOException {
|
||||||
Set<TaskAttemptID> remaining, URL url) throws IOException {
|
|
||||||
long startTime = Time.monotonicNow();
|
long startTime = Time.monotonicNow();
|
||||||
boolean shouldWait = true;
|
boolean shouldWait = true;
|
||||||
while (shouldWait) {
|
while (shouldWait) {
|
||||||
|
|
Loading…
Reference in New Issue