|
@@ -549,14 +549,14 @@ public class BlockReaderFactory implements ShortCircuitReplicaCreator {
|
|
|
// Handle an I/O error we got when using a cached socket.
|
|
|
// These are considered less serious, because the socket may be stale.
|
|
|
LOG.debug("{}: closing stale domain peer {}", this, peer, e);
|
|
|
- IOUtilsClient.cleanup(LOG, peer);
|
|
|
+ IOUtilsClient.cleanupWithLogger(LOG, peer);
|
|
|
} else {
|
|
|
// Handle an I/O error we got when using a newly created socket.
|
|
|
// We temporarily disable the domain socket path for a few minutes in
|
|
|
// this case, to prevent wasting more time on it.
|
|
|
LOG.warn(this + ": I/O error requesting file descriptors. " +
|
|
|
"Disabling domain socket " + peer.getDomainSocket(), e);
|
|
|
- IOUtilsClient.cleanup(LOG, peer);
|
|
|
+ IOUtilsClient.cleanupWithLogger(LOG, peer);
|
|
|
clientContext.getDomainSocketFactory()
|
|
|
.disableDomainSocketPath(pathInfo.getPath());
|
|
|
return null;
|
|
@@ -620,7 +620,7 @@ public class BlockReaderFactory implements ShortCircuitReplicaCreator {
|
|
|
return null;
|
|
|
} finally {
|
|
|
if (replica == null) {
|
|
|
- IOUtilsClient.cleanup(DFSClient.LOG, fis[0], fis[1]);
|
|
|
+ IOUtilsClient.cleanupWithLogger(DFSClient.LOG, fis[0], fis[1]);
|
|
|
}
|
|
|
}
|
|
|
case ERROR_UNSUPPORTED:
|
|
@@ -692,7 +692,7 @@ public class BlockReaderFactory implements ShortCircuitReplicaCreator {
|
|
|
blockReader = getRemoteBlockReader(peer);
|
|
|
return blockReader;
|
|
|
} catch (IOException ioe) {
|
|
|
- IOUtilsClient.cleanup(LOG, peer);
|
|
|
+ IOUtilsClient.cleanupWithLogger(LOG, peer);
|
|
|
if (isSecurityException(ioe)) {
|
|
|
LOG.trace("{}: got security exception while constructing a remote "
|
|
|
+ " block reader from the unix domain socket at {}",
|
|
@@ -715,7 +715,7 @@ public class BlockReaderFactory implements ShortCircuitReplicaCreator {
|
|
|
}
|
|
|
} finally {
|
|
|
if (blockReader == null) {
|
|
|
- IOUtilsClient.cleanup(LOG, peer);
|
|
|
+ IOUtilsClient.cleanupWithLogger(LOG, peer);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -766,7 +766,7 @@ public class BlockReaderFactory implements ShortCircuitReplicaCreator {
|
|
|
}
|
|
|
} finally {
|
|
|
if (blockReader == null) {
|
|
|
- IOUtilsClient.cleanup(LOG, peer);
|
|
|
+ IOUtilsClient.cleanupWithLogger(LOG, peer);
|
|
|
}
|
|
|
}
|
|
|
}
|