[ 
https://issues.apache.org/jira/browse/GOBBLIN-864?focusedWorklogId=301458&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-301458
 ]

ASF GitHub Bot logged work on GOBBLIN-864:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Aug/19 20:24
            Start Date: 26/Aug/19 20:24
    Worklog Time Spent: 10m 
      Work Description: yukuai518 commented on pull request #2720: 
[GOBBLIN-864] add job error message in job state
URL: https://github.com/apache/incubator-gobblin/pull/2720#discussion_r317779740
 
 

 ##########
 File path: 
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/EventMetadataUtils.java
 ##########
 @@ -42,6 +43,26 @@ public static long getProcessedCount(List<TaskState> 
taskStates) {
     return value;
   }
 
+  /**
+   * Get failure messages
+   * @return The failure messages from the job state
+   */
+  public static String getJobFailureExceptions(JobState jobState) {
+    StringBuffer sb = new StringBuffer();
+
+    if (jobState.contains(JOB_FAILURE_MESSAGE_KEY)) {
+      sb.append(jobState.getProp(JOB_FAILURE_MESSAGE_KEY));
+    }
+    if (jobState.contains(ConfigurationKeys.JOB_FAILURE_EXCEPTION_KEY)) {
+      if (sb.length() != 0) {
+        sb.append(",");
 
 Review comment:
   Maybe just use Joiner.on(",") to join multiple strings.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 301458)
    Time Spent: 0.5h  (was: 20m)

> add job error message in job state
> ----------------------------------
>
>                 Key: GOBBLIN-864
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-864
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Arjun Singh Bora
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to