Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ public void run() {
} catch (Throwable t) {
String s = datanode.getDisplayName() + ":DataXceiver error processing "
+ ((op == null) ? "unknown" : op.name()) + " operation "
+ " src: " + remoteAddress + " dst: " + localAddress;
+ " src: " + remoteAddress + " dst: " + localAddress
+ (previousOpClientName != null
? " clientName: " + previousOpClientName : "");
if (op == Op.WRITE_BLOCK && t instanceof ReplicaAlreadyExistsException) {
// For WRITE_BLOCK, it is okay if the replica already exists since
// client and replication may write the same block to the same datanode
Expand Down Expand Up @@ -645,8 +647,8 @@ public void readBlock(final ExtendedBlock block,
datanode.metrics.incrTotalReadTime(TimeUnit.NANOSECONDS.toMillis(durationInNS));
DFSUtil.addTransferRateMetric(datanode.metrics, read, durationInNS);
} catch ( SocketException ignored ) {
LOG.trace("{}:Ignoring exception while serving {} to {}",
dnR, block, remoteAddress, ignored);
LOG.trace("{}:Ignoring exception while serving {} to {} for client {}",
dnR, block, remoteAddress, clientName, ignored);
// Its ok for remote side to close the connection anytime.
datanode.metrics.incrBlocksRead();
IOUtils.closeStream(out);
Expand All @@ -655,8 +657,8 @@ public void readBlock(final ExtendedBlock block,
* Earlier version shutdown() datanode if there is disk error.
*/
if (!(ioe instanceof SocketTimeoutException)) {
LOG.warn("{}:Got exception while serving {} to {}",
dnR, block, remoteAddress, ioe);
LOG.warn("{}:Got exception while serving {} to {} for client {}",
dnR, block, remoteAddress, clientName, ioe);
incrDatanodeNetworkErrors();
}
// Normally the client reports a bad block to the NN. However if the
Expand Down Expand Up @@ -949,8 +951,8 @@ public void writeBlock(final ExtendedBlock block,
size = block.getNumBytes();
}
} catch (IOException ioe) {
LOG.info("opWriteBlock {} received exception {}",
block, ioe.toString());
LOG.info("opWriteBlock {} received exception {} from client {}",
block, ioe.toString(), clientname);
incrDatanodeNetworkErrors();
throw ioe;
} finally {
Expand Down Expand Up @@ -991,8 +993,8 @@ public void transferBlock(final ExtendedBlock blk,
targetStorageTypes, targetStorageIds, clientName);
writeResponse(Status.SUCCESS, null, out);
} catch (IOException ioe) {
LOG.info("transferBlock {} received exception {}",
blk, ioe.toString());
LOG.info("transferBlock {} received exception {} from client {}",
blk, ioe.toString(), clientName);
incrDatanodeNetworkErrors();
throw ioe;
} finally {
Expand Down