Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-13588

StreamTask.handleAsyncException throws away the exception cause

    XMLWordPrintableJSON

Details

    Description

      Code below throws the reason 'message' away making it hard to diagnose why a split has failed for instance.

       

      
      https://github.com/apache/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java#L909
      
      @Override
      	public void handleAsyncException(String message, Throwable exception) {
      	if (isRunning) {
      	// only fail if the task is still running
      	getEnvironment().failExternally(exception);
      	}
      }

       

      Need to pass the message through so that we see it in logs please.

       

      Attachments

        Issue Links

          Activity

            People

              johnlon John Lonergan
              johnlon John Lonergan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m