Parent Directory | Revision Log | Patch
--- lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/TaskRunner.java 2005/07/18 20:51:28 219565 +++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/TaskRunner.java 2005/07/18 20:57:34 219566 @@ -94,8 +94,15 @@ abstract class TaskRunner extends Thread t.getTaskId() // pass task identifier }, null); - } catch (Exception e) { - LOG.log(Level.WARNING, "Child Error", e); + } catch (Throwable throwable) { + LOG.log(Level.WARNING, "Child Error", throwable); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + throwable.printStackTrace(new PrintStream(baos)); + try { + tracker.reportDiagnosticInfo(t.getTaskId(), baos.toString()); + } catch (IOException e) { + LOG.log(Level.WARNING, "Reporting Diagnostics", e); + } } finally { tracker.reportTaskFinished(t.getTaskId()); }
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |