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

Unprotected access to cancelables in StreamTask

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      In performCheckpoint():

                                      AsyncCheckpointRunnable asyncCheckpointRunnable = new AsyncCheckpointRunnable(
                                                      "checkpoint-" + checkpointId + "-" + timestamp,
                                                      this,
                                                      cancelables,
                                                      chainedStateHandles,
                                                      keyGroupsStateHandleFuture,
                                                      checkpointId,
                                                      bytesBufferedAlignment,
                                                      alignmentDurationNanos,
                                                      syncDurationMillis,
                                                      endOfSyncPart);
      
                                      synchronized (cancelables) {
                                              cancelables.add(asyncCheckpointRunnable);
                                      }
      

      Construction of AsyncCheckpointRunnable should be put under the synchronized block of cancelables.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: