Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 39339 invoked from network); 2 Mar 2011 20:21:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 20:21:44 -0000 Received: (qmail 66365 invoked by uid 500); 2 Mar 2011 20:21:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66162 invoked by uid 500); 2 Mar 2011 20:21:33 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Delivered-To: moderator for derby-dev@db.apache.org Received: (qmail 64703 invoked by uid 99); 2 Mar 2011 19:10:15 -0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Date: Wed, 2 Mar 2011 19:09:37 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <1660432161.8511.1299092977075.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <304634043.8393.1299091116877.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (DERBY-5086) Disable istat logging by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-5086: -------------------------------------- Attachment: disable-logging.diff Attaching a patch that makes logging disabled by default. According to the comments in the code, the logging was intended to be disabled before the release. Running regression tests. > Disable istat logging by default > -------------------------------- > > Key: DERBY-5086 > URL: https://issues.apache.org/jira/browse/DERBY-5086 > Project: Derby > Issue Type: Improvement > Components: Services > Affects Versions: 10.8.0.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Attachments: disable-logging.diff > > > The automatic index statistics daemon will by default log what it's doing. That means messages like these ones will be written to derby.log during normal operation: > Wed Mar 02 13:36:22 CET 2011 Thread[main,5,main] {istat} "APP"."T": update scheduled - 23ce809c-012e-7691-6c29-000003480128 reason=[no stats, row-estimate=36167] (queueSize=1) > Wed Mar 02 13:36:22 CET 2011 Thread[index-stat-thread,5,main] {istat} "APP"."T": generating index statistics > Wed Mar 02 13:36:23 CET 2011 Thread[index-stat-thread,5,main] {istat} "APP"."T": generation complete (509 ms) > Wed Mar 02 13:36:23 CET 2011 Thread[main,5,main] {istat} stopping daemon, active=false, work/age=510/14736 [q/p/s=0/1/1,err:k/u/c=0/0/0,rej:f/d/o=0/0/0] > Although these messages may be helpful in diagnosing bugs, they may also be a source of confusion since users probably only expect errors/problems to be logged by default. Also, for some workloads, large quantities of log may be produced and take up disk space. Therefore, I think we should disable the logging before the 10.8 release, and instead instruct users who experience problems to enable logging manually with the derby.storage.indexStats.log property. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira