소스 검색

MAPREDUCE-796. Fixes a ClassCastException in an exception log in MultiThreadedMapRunner. Contributed by Amar Kamat.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20@801953 13f79535-47bb-0310-9956-ffa450edef68
Devaraj Das 16 년 전
부모
커밋
88ef65e6b7
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/mapred/org/apache/hadoop/mapreduce/lib/map/MultithreadedMapper.java

+ 3 - 0
CHANGES.txt

@@ -195,6 +195,9 @@ Release 0.20.1 - Unreleased
 
     MAPREDUCE-40. Keep memory management backwards compatible for job 
     configuration parameters and limits. (Rahul Kumar Singh via yhemanth)
+
+    MAPREDUCE-796. Fixes a ClassCastException in an exception log in
+    MultiThreadedMapRunner. (Amar Kamat via ddas)
    
 Release 0.20.0 - 2009-04-15
 

+ 1 - 1
src/mapred/org/apache/hadoop/mapreduce/lib/map/MultithreadedMapper.java

@@ -146,7 +146,7 @@ public class MultithreadedMapper<K1, V1, K2, V2>
         } else if (th instanceof InterruptedException) {
           throw (InterruptedException) th;
         } else {
-          throw (RuntimeException) th;
+          throw new RuntimeException(th);
         }
       }
     }