hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r644993 - in /hadoop/core/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/DFSClient.java
Date Fri, 04 Apr 2008 23:34:03 GMT
Author: cdouglas
Date: Fri Apr  4 16:33:56 2008
New Revision: 644993

URL: http://svn.apache.org/viewvc?rev=644993&view=rev
Log:
HADOOP-1911. Fix an infinite loop in DFSClient when all replicas of a
block are bad.


Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=644993&r1=644992&r2=644993&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Fri Apr  4 16:33:56 2008
@@ -514,6 +514,9 @@
     HADOOP-3178. Fix GridMix scripts for small and medium jobs
     to handle input paths differently. (Mukund Madhugiri via nigel)
 
+    HADOOP-1911. Fix an infinite loop in DFSClient when all replicas of a
+    block are bad (cdouglas)
+
 Release 0.16.3 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java?rev=644993&r1=644992&r2=644993&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/dfs/DFSClient.java Fri Apr  4 16:33:56 2008
@@ -1113,6 +1113,7 @@
     private Block currentBlock = null;
     private long pos = 0;
     private long blockEnd = -1;
+    private int failures = 0;
 
     /* XXX Use of CocurrentHashMap is temp fix. Need to fix 
      * parallel accesses to DFSInputStream (through ptreads) properly */
@@ -1421,7 +1422,6 @@
         
     private DNAddrPair chooseDataNode(LocatedBlock block)
       throws IOException {
-      int failures = 0;
       while (true) {
         DatanodeInfo[] nodes = block.getLocations();
         try {



Mime
View raw message