accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-3910) Automatically rotate .out/.err files instead of overwriting
Date Mon, 22 Jun 2015 16:40:00 GMT


Josh Elser commented on ACCUMULO-3910:

Borrowing from HBase, they have this snippet for managing this:

hbase_rotate_log ()
    if [ -n "$2" ]; then
    if [ -f "$log" ]; then # rotate logs
    while [ $num -gt 1 ]; do
        prev=`expr $num - 1`
        [ -f "$log.$prev" ] && mv -f "$log.$prev" "$log.$num"
    mv -f "$log" "$log.$num";

> Automatically rotate .out/.err files instead of overwriting
> -----------------------------------------------------------
>                 Key: ACCUMULO-3910
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>          Components: scripts
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Critical
>             Fix For: 1.8.0
> I was just bit by this again and am tired of dealing with old .out and .err files being
overwritten when a process is restarted.
> Assume the master falls over because of an OOME. The log file may not have any reference
to this exception depending on where the OOME was thrown from. Only the .err or .out files
will have the file. Someone comes along and restarts the server process (trying to help) and
suddenly the root cause of why the process fell over in the first place is gone.
> It is trivial to rotate the files and keep a certain number of them present.

This message was sent by Atlassian JIRA

View raw message