Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 83466 invoked from network); 24 Mar 2011 15:20:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 15:20:48 -0000 Received: (qmail 72674 invoked by uid 500); 24 Mar 2011 15:20:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 72608 invoked by uid 500); 24 Mar 2011 15:20:46 -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 72500 invoked by uid 99); 24 Mar 2011 15:20:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 15:20:46 +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 Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 15:20:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1DCC74BD42 for ; Thu, 24 Mar 2011 15:20:06 +0000 (UTC) Date: Thu, 24 Mar 2011 15:20:06 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <1400304008.8490.1300980006118.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1146931259.5459.1299606421122.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5108) Intermittent failure in AutomaticIndexStatisticsTest.testShutdownWhileScanningThenDelete on Windows 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-5108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010701#comment-13010701 ] Knut Anders Hatlen commented on DERBY-5108: ------------------------------------------- Thanks for the followup patch, Dag. I think it makes sense to change the interrupt handling to match what we do in the rest of the engine. I applied the patch and added a call to Thread.interrupt() to make join() always throw an exception. I verified that it saved the interrupt status and continued waiting until the thread had completed. However, when I checked the interrupt flag after DriverManager.getConnection("...;shutdown=true") had completed, the interrupt flag was not set in the thread. Perhaps the shutdown code doesn't have the mechanism in place to restore the interrupt flag? > Intermittent failure in AutomaticIndexStatisticsTest.testShutdownWhileScanningThenDelete on Windows > --------------------------------------------------------------------------------------------------- > > Key: DERBY-5108 > URL: https://issues.apache.org/jira/browse/DERBY-5108 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.8.0.0 > Environment: Windows platforms. > Reporter: Kristian Waagan > Priority: Blocker > Attachments: derby-5108-2.diff, javacore.20110309.125807.4048.0001.txt, waitOnShutdown.diff > > > The test AutomaticIndexStatisticsTest.testShutdownWhileScanningThenDelete fails intermittently on Windows platforms because the test is unable to delete a database directory. > Even after several retries and sleeps (the formula should be (attempt -1) * 2000, resulting in a total sleep time of 12 seconds), the conglomerate system\singleUse\copyShutdown\seg0\c481.dat cannot be deleted. > For instance from http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/testlog/w2003/1078855-suitesAll_diff.txt : > (truncated paths) > testShutdownWhileScanningThenDelete attempt 1 left 3 files/dirs behind: 0=system\singleUse\copyShutdown\seg0\c481.dat 1=system\singleUse\copyShutdown\seg0 2=system\singleUse\copyShutdown > attempt 2 left 3 files/dirs behind: 0=system\singleUse\copyShutdown\seg0\c481.dat 1=system\singleUse\copyShutdown\seg0 2=system\singleUse\copyShutdown > attempt 3 left 3 files/dirs behind: 0=system\singleUse\copyShutdown\seg0\c481.dat 1=system\singleUse\copyShutdown\seg0 2=system\singleUse\copyShutdown > attempt 4 left 3 files/dirs behind: 0=system\singleUse\copyShutdown\seg0\c481.dat 1=system\singleUse\copyShutdown\seg0 2=system\singleUse\copyShutdown > used 205814 ms F. > Maybe the database isn't shut down, or some specific timing of events causes a file to be reopened when it shouldn't have been (i.e. after the database shutdown has been initiated). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira