Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A2D218AA1 for ; Mon, 22 Jun 2015 16:46:02 +0000 (UTC) Received: (qmail 43930 invoked by uid 500); 22 Jun 2015 16:46:02 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 43895 invoked by uid 500); 22 Jun 2015 16:46:02 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 43883 invoked by uid 99); 22 Jun 2015 16:46:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2015 16:46:02 +0000 Date: Mon, 22 Jun 2015 16:46:02 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2287) Logs are overwritten upon restart MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596200#comment-14596200 ] Josh Elser commented on ACCUMULO-2287: -------------------------------------- Recopying my comments... Borrowing from HBase, they have this snippet for managing this: {code} hbase_rotate_log () { log=$1; num=5; if [ -n "$2" ]; then num=$2 fi if [ -f "$log" ]; then # rotate logs while [ $num -gt 1 ]; do prev=`expr $num - 1` [ -f "$log.$prev" ] && mv -f "$log.$prev" "$log.$num" num=$prev done mv -f "$log" "$log.$num"; fi } {code} > Logs are overwritten upon restart > --------------------------------- > > Key: ACCUMULO-2287 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2287 > Project: Accumulo > Issue Type: Improvement > Components: master, tserver > Affects Versions: 1.4.4, 1.5.0, 1.6.0, 1.7.0 > Reporter: Mike Drob > Assignee: Josh Elser > Fix For: 1.8.0 > > > When a server is restarted, then it overwrites the contents of the .out and .err files. This makes it more difficult to debug failures if you have something like puppet or supervisord ensuring that your processes are always running. We should figure out how to roll the files instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)