You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Xiao Chen (JIRA)" <ji...@apache.org> on 2017/01/24 20:28:26 UTC
[jira] [Created] (HDFS-11366) Clean up old .ckpt files after
saveNamespace
Xiao Chen created HDFS-11366:
--------------------------------
Summary: Clean up old .ckpt files after saveNamespace
Key: HDFS-11366
URL: https://issues.apache.org/jira/browse/HDFS-11366
Project: Hadoop HDFS
Issue Type: Improvement
Components: hdfs, namenode
Affects Versions: 2.6.0
Reporter: Xiao Chen
Assignee: Xiao Chen
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org