Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 53FF4200B13 for ; Wed, 15 Jun 2016 23:34:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 52B8A160A5D; Wed, 15 Jun 2016 21:34:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C3968160A57 for ; Wed, 15 Jun 2016 23:34:10 +0200 (CEST) Received: (qmail 64417 invoked by uid 500); 15 Jun 2016 21:34:09 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 64390 invoked by uid 99); 15 Jun 2016 21:34:09 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2016 21:34:09 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7A35D2C1F5C for ; Wed, 15 Jun 2016 21:34:09 +0000 (UTC) Date: Wed, 15 Jun 2016 21:34:09 +0000 (UTC) From: "Mahdi Mohammadi (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11949) GC log directory should be created in startup scripts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Jun 2016 21:34:11 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15332627#comment-15332627 ] Mahdi Mohammadi commented on CASSANDRA-11949: --------------------------------------------- Branch: [2.2|https://github.com/mm-binary/cassandra/tree/11949-2.2] > GC log directory should be created in startup scripts > ----------------------------------------------------- > > Key: CASSANDRA-11949 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11949 > Project: Cassandra > Issue Type: Bug > Reporter: Joel Knighton > Assignee: Mahdi Mohammadi > Priority: Minor > > In [CASSANDRA-10140], we enabled GC logging by default, since the overhead was low and asking people providing diagnostics to restart can often make it more difficult to diagnose problems. > The default GC log path is set to {{$CASSANDRA_HOME/logs/gc.log}} in {{cassandra-env.sh}}, a directory that is not present in a fresh clone/install. Even if logback creates this directory later in startup, it is not present when the JVM initiates GC logging, so GC logging will silently fail for this first Cassandra run > I haven't tested this in Windows but suspect the same problem may occur. Since lots of tooling around Cassandra won't create this directory, we should instead consider attempting to create it in our startup scripts. -- This message was sent by Atlassian JIRA (v6.3.4#6332)