hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r1092563 - in /hadoop/mapreduce/branches/MR-279: CHANGES.txt yarn/yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/YarnRemoteException.java
Date Fri, 15 Apr 2011 01:33:46 GMT
Author: mahadev
Date: Fri Apr 15 01:33:46 2011
New Revision: 1092563

URL: http://svn.apache.org/viewvc?rev=1092563&view=rev
Log:
Fix YarnRemoteException to give more details. (siddharth seth via mahadev)

Modified:
    hadoop/mapreduce/branches/MR-279/CHANGES.txt
    hadoop/mapreduce/branches/MR-279/yarn/yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/YarnRemoteException.java

Modified: hadoop/mapreduce/branches/MR-279/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/MR-279/CHANGES.txt?rev=1092563&r1=1092562&r2=1092563&view=diff
==============================================================================
--- hadoop/mapreduce/branches/MR-279/CHANGES.txt (original)
+++ hadoop/mapreduce/branches/MR-279/CHANGES.txt Fri Apr 15 01:33:46 2011
@@ -13,6 +13,8 @@ Trunk (unreleased changes)
    Install sanitized poms for downstream sanity (Luke Lu via mahadev)
 
    WebApp for Job History (Krishna Ramachandran via mahadev)
+  
+   Fix YarnRemoteException to give more details. (siddharth seth via mahadev)
 
   INCOMPATIBLE CHANGES
 

Modified: hadoop/mapreduce/branches/MR-279/yarn/yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/YarnRemoteException.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/MR-279/yarn/yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/YarnRemoteException.java?rev=1092563&r1=1092562&r2=1092563&view=diff
==============================================================================
--- hadoop/mapreduce/branches/MR-279/yarn/yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/YarnRemoteException.java
(original)
+++ hadoop/mapreduce/branches/MR-279/yarn/yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/YarnRemoteException.java
Fri Apr 15 01:33:46 2011
@@ -1,6 +1,8 @@
 package org.apache.hadoop.yarn.exceptions;
 
 import java.io.IOException;
+import java.io.PrintStream;
+import java.io.PrintWriter;
 
 public abstract class YarnRemoteException extends IOException {
   private static final long serialVersionUID = 1L;
@@ -21,6 +23,20 @@ public abstract class YarnRemoteExceptio
     super(message);
   }
   
+  @Override
+  public void printStackTrace(PrintWriter pw) {
+    pw.append("RemoteTrace: \n").append(getRemoteTrace())
+      .append(" at LocalTrace: \n\t");
+    super.printStackTrace(pw);
+  }
+
+  @Override
+  public void printStackTrace(PrintStream ps) {
+    ps.append("RemoteTrace: \n").append(getRemoteTrace())
+      .append(" at Local Trace: \n\t");
+    super.printStackTrace(ps);
+  }
+  
   public abstract String getRemoteTrace();
   
   public abstract YarnRemoteException getCause();



Mime
View raw message