Bladeren bron

Revert HDFS-127.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20@897347 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 15 jaren geleden
bovenliggende
commit
b20a55817e
2 gewijzigde bestanden met toevoegingen van 0 en 7 verwijderingen
  1. 0 5
      CHANGES.txt
  2. 0 2
      src/hdfs/org/apache/hadoop/hdfs/DFSClient.java

+ 0 - 5
CHANGES.txt

@@ -7,11 +7,6 @@ Release 0.20.2 - Unreleased
     HADOOP-6218. Adds a feature where TFile can be split by Record
     Sequence number. (Hong Tang and Raghu Angadi via ddas)
 
-  IMPROVEMENTS
-
-    HDFS-127. Reset failure count in DFSClient for each block acquiring
-    operation.  (Igor Bolotin via szetszwo)
-
   BUG FIXES
 
     MAPREDUCE-112. Add counters for reduce input, output records to the new API.

+ 0 - 2
src/hdfs/org/apache/hadoop/hdfs/DFSClient.java

@@ -1619,7 +1619,6 @@ public class DFSClient implements FSConstants, java.io.Closeable {
       // Connect to best DataNode for desired Block, with potential offset
       //
       DatanodeInfo chosenNode = null;
-      failures = 0;
       while (s == null) {
         DNAddrPair retval = chooseDataNode(targetBlock);
         chosenNode = retval.info;
@@ -1820,7 +1819,6 @@ public class DFSClient implements FSConstants, java.io.Closeable {
       Socket dn = null;
       int numAttempts = block.getLocations().length;
       IOException ioe = null;
-      failures = 0;
       
       while (dn == null && numAttempts-- > 0 ) {
         DNAddrPair retval = chooseDataNode(block);