You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by jg...@apache.org on 2010/10/30 22:10:31 UTC
svn commit: r1029177 - in /hbase/trunk: CHANGES.txt bin/hbase-daemon.sh
Author: jgray
Date: Sat Oct 30 20:10:31 2010
New Revision: 1029177
URL: http://svn.apache.org/viewvc?rev=1029177&view=rev
Log:
HBASE-3126 Force use of 'mv -f' when moving aside hbase logfiles
Modified:
hbase/trunk/CHANGES.txt
hbase/trunk/bin/hbase-daemon.sh
Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1029177&r1=1029176&r2=1029177&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Sat Oct 30 20:10:31 2010
@@ -1075,6 +1075,7 @@ Release 0.21.0 - Unreleased
that are partitioned on time
HBASE-2253 Show Block cache hit ratio for requests where
cacheBlocks=true
+ HBASE-3126 Force use of 'mv -f' when moving aside hbase logfiles
NEW FEATURES
Modified: hbase/trunk/bin/hbase-daemon.sh
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase-daemon.sh?rev=1029177&r1=1029176&r2=1029177&view=diff
==============================================================================
--- hbase/trunk/bin/hbase-daemon.sh (original)
+++ hbase/trunk/bin/hbase-daemon.sh Sat Oct 30 20:10:31 2010
@@ -64,10 +64,10 @@ hbase_rotate_log ()
if [ -f "$log" ]; then # rotate logs
while [ $num -gt 1 ]; do
prev=`expr $num - 1`
- [ -f "$log.$prev" ] && mv "$log.$prev" "$log.$num"
+ [ -f "$log.$prev" ] && mv -f "$log.$prev" "$log.$num"
num=$prev
done
- mv "$log" "$log.$num";
+ mv -f "$log" "$log.$num";
fi
}