hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r423019 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java
Date Tue, 18 Jul 2006 09:15:47 GMT
Author: cutting
Date: Tue Jul 18 02:15:47 2006
New Revision: 423019

URL: http://svn.apache.org/viewvc?rev=423019&view=rev
Log:
HADOOP-365.  Fix a ClassCastException introduced by HADOOP-354.  Patch contributed by Owen.

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

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java?rev=423019&r1=423018&r2=423019&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java Tue Jul 18 02:15:47 2006
@@ -904,7 +904,7 @@
 
     //  Wait for sub threads to exit
     for (Iterator iterator = subDataNodeList.entrySet().iterator(); iterator.hasNext();)
{
-      Thread threadDataNode = (Thread) iterator.next();
+      Thread threadDataNode = (Thread) ((Map.Entry) iterator.next()).getValue();
       try {
         threadDataNode.join();
       } catch (InterruptedException e) {



Mime
View raw message