From cacf83b6c31863afe75b4724b9496e2d7ca77a0e Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Thu, 20 Oct 2016 11:02:02 -0500 Subject: [PATCH] HDFS-10627. Volume Scanner marks a block as "suspect" even if the exception is network-related. Contributed by Rushabh S Shah. (cherry picked from commit 5c0bffddc0cb824a8a2751bcd0dc3e15ce081727) --- .../org/apache/hadoop/hdfs/server/datanode/BlockSender.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockSender.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockSender.java index e060cabd80b..767d36e92ed 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockSender.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockSender.java @@ -622,10 +622,10 @@ class BlockSender implements java.io.Closeable { String ioem = e.getMessage(); if (!ioem.startsWith("Broken pipe") && !ioem.startsWith("Connection reset")) { LOG.error("BlockSender.sendChunks() exception: ", e); - } - datanode.getBlockScanner().markSuspectBlock( + datanode.getBlockScanner().markSuspectBlock( volumeRef.getVolume().getStorageID(), block); + } } throw ioeToSocketException(e); }