hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r535992 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
Date Mon, 07 May 2007 20:59:32 GMT
Author: cutting
Date: Mon May  7 13:59:31 2007
New Revision: 535992

URL: http://svn.apache.org/viewvc?view=rev&rev=535992
Log:
HADOOP-1224.  Fix to the prior fix.  Contributed by Enis Soztutar.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java?view=diff&rev=535992&r1=535991&r2=535992
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java Mon May  7 13:59:31
2007
@@ -2859,7 +2859,7 @@
       index = r.nextInt(size);
       for(int i=0; i<size; i++) {
         DatanodeDescriptor d = getDatanodeByIndex(index);
-        if (d != null && !d.isDecommissioned() && isDatanodeDead(d) &&
+        if (d != null && !d.isDecommissioned() && !isDatanodeDead(d) &&
             !d.isDecommissionInProgress()) {
           return d.getHost() + ":" + d.getInfoPort();
         }



Mime
View raw message