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

Make the "file monitoring source" exactly-once

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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.10.2
    • None
    • None
    • None

    Description

      The stream source that watches directories for changes is currently not "exactly-once".

      To make it exactly once, the source (that generates files to be read) and the flatMap (that reads the files) need to keep track of where they were at the point of a checkpoint.

      Assuming that files do not change after creation (HDFS / S3 style), we can make this the following way:

      • The source can track the files it already emitted downstream via file creation/modification timestamp, assuming that new files always get newer timestamps.
      • The flatMappers need to always store the path of their current file fragment, plus the byte offset where they were within that file split.

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            sewen Stephan Ewen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment