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

Move null handling from ErrorInfo into Task.notifyFinalState

    XMLWordPrintableJSON

Details

    Description

      Ideally, we would want to have this null check since a failure should always have a cause. We didn't introduce a null check so far because of FLINK-21376. There is ErrorInfo. createErrorInfoWithNullableCause for handling this. But it feels to be handled in the wrong place. Instead, we should substitute the null value by the FlinkException in Task.notifyFinalState. This way, we make sure that null never ends up in the ExecutionGraph-related code which enables us to make the invariants stricter on our end.

      This would serve as a preparation task

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mapohl Matthias Pohl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: