Explorar o código

HDFS-9713. DataXceiver#copyBlock should return if block is pinned. Contributed by Uma Maheswara Rao G.

Uma Maheswara Rao G %!s(int64=9) %!d(string=hai) anos
pai
achega
aea31eee78

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -2710,6 +2710,9 @@ Release 2.8.0 - UNRELEASED
     HDFS-9761. Rebalancer sleeps too long between iterations
     (Mingliang Liu via cnauroth)
 
+    HDFS-9713. DataXceiver#copyBlock should return if block is pinned.
+    (umamahesh)
+
 Release 2.7.3 - UNRELEASED
 
   INCOMPATIBLE CHANGES

+ 1 - 0
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java

@@ -995,6 +995,7 @@ class DataXceiver extends Receiver implements Runnable {
           "to " + peer.getRemoteAddressString() + " because it's pinned ";
       LOG.info(msg);
       sendResponse(ERROR, msg);
+      return;
     }
     
     if (!dataXceiverServer.balanceThrottler.acquire()) { // not able to start