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

Rename checkpoint meta file to "_metadata" until it has completed writing

    XMLWordPrintableJSON

Details

    Description

      In practice, some developers or customers would use some strategy to find the recent _metadata as the checkpoint to recover (e.g as many proposals in FLINK-9043 suggest). However, there existed a "_meatadata" file does not mean the checkpoint have been completed as the writing to create the "_meatadata" file could break as some force quit (e.g. yarn application -kill).

      We could create the checkpoint meta stream to write data to file named as "_metadata.inprogress" and renamed it to "_metadata" once completed writing. By doing so, we could ensure the "_metadata" is not broken.

      Attachments

        Issue Links

          Activity

            People

              zuston Junfan Zhang
              yunta Yun Tang
              Votes:
              2 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: