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

ContinuousFileReaderOperator checkpoint timeout when files and directories get larger

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Not a Priority
    • Resolution: Unresolved
    • None
    • None
    • API / DataStream
    • None

    Description

      This is reported from user-zh, I tranlsated it into this issue: http://apache-flink.147419.n8.nabble.com/env-readFile-td4017.html

      env.readFile(format,path, FileProcessingMode.PROCESS_CONTINUOUSLY, 60000)

      It monitors a directory of A, we will generate a new directory under A every day, such as:

      A/20200101/
      A/20200102/
      A/20200103/
      .......
      .......

      However, as time goes on, it has to monitor 200 directories and 500 files in each directory until June. Then everytime, the checkpoint has to synchronize offsets of 200*500 files which is very large and checkpoint gets timeout.

      ========================================================

      My though is that is it possible to have a configuration, to mark a sub-directory as idle after a inactive interval, then we don't need to checkpoint all the file offsets under it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jark Jark Wu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: