Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3365#discussion_r103477920
  
    --- Diff: 
flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JobExceptionsHandler.java
 ---
    @@ -41,19 +43,23 @@ public JobExceptionsHandler(ExecutionGraphHolder 
executionGraphHolder) {
     
        @Override
        public String handleRequest(AccessExecutionGraph graph, Map<String, 
String> params) throws Exception {
    +           return createJobExceptionsJson(graph);
    +   }
    +
    +   public static String createJobExceptionsJson(AccessExecutionGraph 
graph) throws IOException {
                StringWriter writer = new StringWriter();
                JsonGenerator gen = 
JsonFactory.jacksonFactory.createGenerator(writer);
     
                gen.writeStartObject();
                
                // most important is the root failure cause
                String rootException = graph.getFailureCauseAsString();
    -           if (rootException != null) {
    -                   gen.writeStringField("root-exception", rootException);
    +           if 
(!rootException.equals(ExceptionUtils.STRINGIFIED_NULL_EXCEPTION)) {
    --- End diff --
    
    that's reasonable.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to