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

Lock evasion around lastTriggeredCheckpoint may lead to lost updates to related fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None

    Description

      In CheckpointCoordinator#triggerCheckpoint():

              // make sure the minimum interval between checkpoints has passed
              if (lastTriggeredCheckpoint + minPauseBetweenCheckpoints > timestamp) {
      

      If two threads evaluate 'lastTriggeredCheckpoint + minPauseBetweenCheckpoints > timestamp' in close proximity before lastTriggeredCheckpoint is updated, the two threads may have an inconsistent view of "lastTriggeredCheckpoint" and updates to fields correlated with "lastTriggeredCheckpoint" may be lost.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: