Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 81555 invoked from network); 7 May 2009 12:32:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 12:32:57 -0000 Received: (qmail 75773 invoked by uid 500); 7 May 2009 12:32:56 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75673 invoked by uid 500); 7 May 2009 12:32:56 -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 Received: (qmail 75649 invoked by uid 99); 7 May 2009 12:32:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 12:32:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 12:32:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A5C80234C053 for ; Thu, 7 May 2009 05:32:30 -0700 (PDT) Message-ID: <864947731.1241699550678.JavaMail.jira@brutus> Date: Thu, 7 May 2009 05:32:30 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4199) Write exceptions to file in the fail directory as they occur with JUnit tests In-Reply-To: <566801284.1241020470298.JavaMail.jira@brutus> 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-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-4199: ----------------------------------- Attachment: derby-4199-1a-writeExceptionsToFile.stat derby-4199-1a-writeExceptionsToFile.diff I refreshed, and changed, the original patch. Patch 1a will log exceptions to a file called 'error-stacktrace.out' in the same directory as derby.log and the database are saved. If copying the log file or the database fail, that exception will also be logged to the file. To avoid overwriting potentially valuable information, the file is opened in append mode. The time and date are written as a header before the exception stack trace is written. I have tested the patch manually (by throwing an exception in a test, and also by removing the write privileges on the derby.log file), and will start the regression tests. Patch ready for review. > Write exceptions to file in the fail directory as they occur with JUnit tests > ----------------------------------------------------------------------------- > > Key: DERBY-4199 > URL: https://issues.apache.org/jira/browse/DERBY-4199 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.6.0.0 > Reporter: Kathey Marsden > Assignee: Kristian Waagan > Priority: Minor > Attachments: derby-4199-1a-writeExceptionsToFile.diff, derby-4199-1a-writeExceptionsToFile.stat > > > It would be very helpful to write exceptions to the fail directory as they oiccur with JUnit tests. > If tests hang we can still get the failure information and sometimes it is just more efficient to be able to see failures as they occur. Kristian attached a patch to DERBY-2667 for this but it no longer applies to trunk (derby-2667-WriteExceptionsToFileAsTheyHappen.diff). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.