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

OperatorCoordinator.Context#metricGroup will return null when restore from a savepoint

    XMLWordPrintableJSON

Details

    Description

      The `metricGroup` is initialized lazily in the method `OperatorCoordinatorHandler#initializeOperatorCoordinators`.

      This will cause the NullPointerException when we use it in the method like `Source#restoreEnumerator`, which will be invoked through `SchedulerBase#createAndRestoreExecutionGraph` before `OperatorCoordinatorHandler#initializeOperatorCoordinators` in class `SchedulerBase#<init>`.

      Attachments

        Issue Links

          Activity

            People

              ruanhang1993 Hang Ruan
              ruanhang1993 Hang Ruan
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: