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

getLatestCheckpoint(true) returns wrong checkpoint

Agile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The flag to prefer checkpoints for recovery introduced in FLINK-11159 returns the wrong checkpoint if:

      • checkpoints are preferred (getLatestCheckpoint(true)),
      • the latest checkpoint is not a savepoint,
      • more than a single checkpoint is retained.

      The current implementation assumes that the latest checkpoint is a savepoint and skips over it. I attached a patch for StandaloneCompletedCheckpointStoreTest that demonstrates the issue.

      You can apply the patch via git am -3 < *.patch.

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gyfora Gyula Fora
            uce Ufuk Celebi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 40m
              40m

              Slack

                Issue deployment