You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ro...@apache.org on 2012/11/08 05:43:45 UTC
svn commit: r1406921 - in /pig/branches/branch-0.10: CHANGES.txt
src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/Launcher.java
Author: rohini
Date: Thu Nov 8 04:43:45 2012
New Revision: 1406921
URL: http://svn.apache.org/viewvc?rev=1406921&view=rev
Log:
PIG-3035: With latest version of hadoop23 pig does not return the correct exception stack trace from backend (rohini)
Modified:
pig/branches/branch-0.10/CHANGES.txt
pig/branches/branch-0.10/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/Launcher.java
Modified: pig/branches/branch-0.10/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/CHANGES.txt?rev=1406921&r1=1406920&r2=1406921&view=diff
==============================================================================
--- pig/branches/branch-0.10/CHANGES.txt (original)
+++ pig/branches/branch-0.10/CHANGES.txt Thu Nov 8 04:43:45 2012
@@ -38,6 +38,8 @@ PIG-2727: PigStorage Source tagging does
BUG FIXES
+PIG-3035: With latest version of hadoop23 pig does not return the correct exception stack trace from backend (rohini)
+
PIG-2953: "which" utility does not exist on Windows (daijy)
PIG-2960: Increase the timeout for unit test (daijy)
Modified: pig/branches/branch-0.10/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/Launcher.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/Launcher.java?rev=1406921&r1=1406920&r2=1406921&view=diff
==============================================================================
--- pig/branches/branch-0.10/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/Launcher.java (original)
+++ pig/branches/branch-0.10/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/Launcher.java Thu Nov 8 04:43:45 2012
@@ -562,10 +562,12 @@ public abstract class Launcher {
items = fileDetails.split(":");
//PigMapOnly.java
String fileName = null;
- int lineNumber = 0;
+ int lineNumber = -1;
if(items.length > 0) {
fileName = items[0];
- lineNumber = Integer.parseInt(items[1]);
+ if (items.length > 1) {
+ lineNumber = Integer.parseInt(items[1]);
+ }
}
return new StackTraceElement(declaringClass, methodName, fileName, lineNumber);
}