You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2017/06/27 15:03:36 UTC

hbase git commit: HBASE-18274 hbase autorestart will overwrite the gc log (Fangyuan Deng)

Repository: hbase
Updated Branches:
  refs/heads/master 0f4ea611e -> c015abe50


HBASE-18274 hbase autorestart will overwrite the gc log (Fangyuan Deng)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c015abe5
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c015abe5
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c015abe5

Branch: refs/heads/master
Commit: c015abe5076d73ea90cd875cdfa61d2ced4e6ddb
Parents: 0f4ea61
Author: tedyu <yu...@gmail.com>
Authored: Tue Jun 27 08:03:26 2017 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Tue Jun 27 08:03:26 2017 -0700

----------------------------------------------------------------------
 bin/hbase-daemon.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c015abe5/bin/hbase-daemon.sh
----------------------------------------------------------------------
diff --git a/bin/hbase-daemon.sh b/bin/hbase-daemon.sh
index 6c895e9..11c13eb 100755
--- a/bin/hbase-daemon.sh
+++ b/bin/hbase-daemon.sh
@@ -220,7 +220,6 @@ case $startStop in
 
     check_before_start
     hbase_rotate_log $HBASE_LOGOUT
-    hbase_rotate_log $HBASE_LOGGC
     nohup $thiscmd --config "${HBASE_CONF_DIR}" --autostart-window-size ${AUTOSTART_WINDOW_SIZE} --autostart-window-retry-limit ${AUTOSTART_WINDOW_RETRY_LIMIT} \
         internal_autostart $command $args < /dev/null > ${HBASE_LOGOUT} 2>&1  &
   ;;
@@ -260,6 +259,7 @@ case $startStop in
     # keep starting the command until asked to stop. Reloop on software crash
     while true
     do
+      hbase_rotate_log $HBASE_LOGGC
       if [ -f $HBASE_PID ] &&  kill -0 "$(cat "$HBASE_PID")" > /dev/null 2>&1 ; then
         wait "$(cat "$HBASE_PID")"
       else