HDFS-12744. More logs when short-circuit read is failed and disabled. Contributed by Weiwei Yang.
(cherry picked from commit 56b88b06705441f6f171eec7fb2fa77946ca204b) (cherry picked from commit 0f20434e18cfedcc36c969cc2df25123153e0b99)
This commit is contained in:
parent
d1accde1cd
commit
3555397179
@ -646,7 +646,8 @@ private ShortCircuitReplicaInfo requestFileDescriptors(DomainPeer peer,
|
|||||||
default:
|
default:
|
||||||
LOG.warn(this + ": unknown response code " + resp.getStatus() +
|
LOG.warn(this + ": unknown response code " + resp.getStatus() +
|
||||||
" while attempting to set up short-circuit access. " +
|
" while attempting to set up short-circuit access. " +
|
||||||
resp.getMessage());
|
resp.getMessage() + ". Disabling short-circuit read for DataNode "
|
||||||
|
+ datanode + " temporarily.");
|
||||||
clientContext.getDomainSocketFactory()
|
clientContext.getDomainSocketFactory()
|
||||||
.disableShortCircuitForPath(pathInfo.getPath());
|
.disableShortCircuitForPath(pathInfo.getPath());
|
||||||
return null;
|
return null;
|
||||||
|
@ -384,6 +384,8 @@ public void requestShortCircuitFds(final ExtendedBlock blk,
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
bld.setStatus(ERROR);
|
bld.setStatus(ERROR);
|
||||||
bld.setMessage(e.getMessage());
|
bld.setMessage(e.getMessage());
|
||||||
|
LOG.error("Request short-circuit read file descriptor" +
|
||||||
|
" failed with unknown error.", e);
|
||||||
}
|
}
|
||||||
bld.build().writeDelimitedTo(socketOut);
|
bld.build().writeDelimitedTo(socketOut);
|
||||||
if (fis != null) {
|
if (fis != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user