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

Flink checkStateMappingCompleteness doesn't include UserDefinedOperatorIDs

    XMLWordPrintableJSON

Details

    Description

      StateAssignmentOperation.checkStateMappingCompleteness doesn't check for UserDefinedOperatorIDs (specified using setUidHash), causing the exception:

       java.lang.IllegalStateException: There is no operator for the state {}
      

      to be thrown when a savepoint can't be mapped to an ExecutionJobVertex, even when the operator hash is explicitly specified.

      I believe this logic should be extended to also include UserDefinedOperatorIDs as so:

      for (ExecutionJobVertex executionJobVertex : tasks) {
        allOperatorIDs.addAll(executionJobVertex.getOperatorIDs());
        allOperatorIDs.addAll(executionJobVertex.getUserDefinedOperatorIDs());
      }
      

      Attachments

        Issue Links

          Activity

            People

              edu05 Eduardo Winpenny Tejedor
              basharaj Bashar Abdul Jawad
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: