Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 41983 invoked from network); 9 Oct 2008 21:19:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2008 21:19:35 -0000 Received: (qmail 34589 invoked by uid 500); 9 Oct 2008 21:19:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 34556 invoked by uid 500); 9 Oct 2008 21:19:34 -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 34545 invoked by uid 99); 9 Oct 2008 21:19:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 14:19:34 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE 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, 09 Oct 2008 21:18:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 627F7234C21A for ; Thu, 9 Oct 2008 14:18:44 -0700 (PDT) Message-ID: <526402983.1223587124402.JavaMail.jira@brutus> Date: Thu, 9 Oct 2008 14:18:44 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1764) Rewrite stress.multi as a JUnit test In-Reply-To: <4764099.1156530862496.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-1764: ---------------------------------- Attachment: DERBY-1764_sysprops_diff.txt Attached is a patch that enables the test and uses SystemPropertiesTestSetup for setting the system properties for embedded. I added a staticproperties flag to SystemPropertiesTestSetup that will cause the engine to shutdown on setup and teardown so that the properties take effect. It is still not perfect but I would like to check it in as an incremental improvement. The SystemPropertyTestSetup works fine for the embedded test but not for network server because it causes protocol errors and not for encrypted because the database cannot booted after it has been shutdown. So I did the SystemPropertiesTestSetup only for embedded. Another problem is that the database will get deleted after the test run, so the property to keep the transaction log is really not that useful. I plan to change BaseTestCase to save off the database if the test fails. I'll open up another issue for that change. I ran suites.All (hit only DERBY-3719) , StressMutli10x1,StressMulti50x59 > Rewrite stress.multi as a JUnit test > ------------------------------------ > > Key: DERBY-1764 > URL: https://issues.apache.org/jira/browse/DERBY-1764 > Project: Derby > Issue Type: Test > Components: Test > Reporter: Knut Anders Hatlen > Assignee: Erlend Birkenes > Attachments: derby-1764-3a-whitespace_changes.diff, derby-1764-derby.log, DERBY-1764-Review.diff, DERBY-1764-V1.diff, DERBY-1764-V2.diff, DERBY-1764_4.diff, DERBY-1764_5.diff, DERBY-1764_6.diff, DERBY-1764_8_Use_DatabasePropertiesTestSetup.diff, DERBY-1764_sysprops_diff.txt, derby-1764_use_System_PropertySetup_diff.txt > > > Currently, stress.multi consists of a number of sql scripts that are run in ij. It often fails with cryptic error messages, and since it uses ij, there is often no stack trace. It would be very useful to rewrite the test in JUnit so that we can get better error messages and stack traces when it fails. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.