NSNN-675. SecondaryNN should not remove the /old on next checkpoint
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/dd8ef2f4 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/dd8ef2f4 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/dd8ef2f4 Branch: refs/heads/master Commit: dd8ef2f48df62924782bb9e634d478f6600190fc Parents: 6db7567 Author: keith pak <[email protected]> Authored: Thu Apr 10 14:20:42 2014 -0700 Committer: keith pak <[email protected]> Committed: Thu Apr 10 14:20:42 2014 -0700 ---------------------------------------------------------------------- .../src/common/wdd-namenode-nonstop/secondary-nonstop-loop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/dd8ef2f4/bigtop-packages/src/common/wdd-namenode-nonstop/secondary-nonstop-loop.sh ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/wdd-namenode-nonstop/secondary-nonstop-loop.sh b/bigtop-packages/src/common/wdd-namenode-nonstop/secondary-nonstop-loop.sh index 59b6590..cb2342e 100644 --- a/bigtop-packages/src/common/wdd-namenode-nonstop/secondary-nonstop-loop.sh +++ b/bigtop-packages/src/common/wdd-namenode-nonstop/secondary-nonstop-loop.sh @@ -22,7 +22,7 @@ while true; do FSIMAGEDIR=$(hdfs --config $nsnode getconf -confKey dfs.namenode.checkpoint.dir) echo Removing previous FSImage and Editlogs from ${FSIMAGEDIR} if [ "x$FSIMAGEDIR" != "x" ]; then - rm -rf ${FSIMAGEDIR}/* + rm -rf ${FSIMAGEDIR}/current else echo "FSIMAGEDIR couldn't be determined" exit 1
