Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 75145 invoked from network); 15 Mar 2011 23:33:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Mar 2011 23:33:51 -0000 Received: (qmail 28298 invoked by uid 500); 15 Mar 2011 23:33:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 28260 invoked by uid 500); 15 Mar 2011 23:33:51 -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 28253 invoked by uid 99); 15 Mar 2011 23:33:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 23:33:51 +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; Tue, 15 Mar 2011 23:33:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 845983AB556 for ; Tue, 15 Mar 2011 23:33:29 +0000 (UTC) Date: Tue, 15 Mar 2011 23:33:29 +0000 (UTC) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Message-ID: <309470620.5447.1300232009538.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 [ https://issues.apache.org/jira/browse/DERBY-5108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007279#comment-13007279 ] Mike Matrigali commented on DERBY-5108: --------------------------------------- yesterday I tried exactly 5 runs using the exact submitted patch and it failed once. I then modified the patch, mostly adding comments and slightly different break structure. I then ran it exactly 40 times and it did not reproduce. I then ran full set of tests in a codeline with istat still enabled as default and they all passed and checked it in - but had to update my codeline to do the submit. I have not run it since. It is a little harder to run since istat does not run by default - which was why I was looking for a checked in solution to running the tests no matter what the default happened to be. I just have not gotten around to hacking a codeline or test run to do it since. I wish the disabling had waited and happened solely in the branch if necessary, so that we could be getting testing on istat in the trunk now. > 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: 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