Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11366

Clean up old .ckpt files after saveNamespace

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.6.0
    • None
    • hdfs, namenode
    • None

    Description

      Checkpoints are done in the NN by writing to fsimage.ckpt_TXID files, and rename to fsimage_TXID files upon success.

      If a checkpoint fails half way, the fsimage.ckpt_ file will be left on disk. There is no logic to clean it up at all.

      After talking with atm, I understand the historical reason for not immediately cleaning up those files, since they maybe useful for disaster recovery.

      But feels like cleaning those ckpt files after a successful checkpoint, with a larger TXID threshold is also safe to do.

      Attachments

        Issue Links

          Activity

            People

              xiaochen Xiao Chen
              xiaochen Xiao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: