Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 53612 invoked from network); 27 Aug 2008 08:28:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 08:28:06 -0000 Received: (qmail 51286 invoked by uid 500); 27 Aug 2008 08:28:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 51160 invoked by uid 500); 27 Aug 2008 08:28:03 -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 51149 invoked by uid 99); 27 Aug 2008 08:28:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 01:28:03 -0700 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; Wed, 27 Aug 2008 08:27:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 79E6F234C1B2 for ; Wed, 27 Aug 2008 01:27:44 -0700 (PDT) Message-ID: <1596924348.1219825664498.JavaMail.jira@brutus> Date: Wed, 27 Aug 2008 01:27:44 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-3786) Assert failure in CacheEntry.unkeepForRemove when running stress.multi In-Reply-To: <88780231.1216628251688.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-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan closed DERBY-3786. ---------------------------------- I ran stress.multi successfully 80 times on the same machine where I first saw this problem. I also ran the repro (d3786) for a while withouth failures. Thanks for the fix, Knut Anders. I'm closing this issue and the duplicate. > Assert failure in CacheEntry.unkeepForRemove when running stress.multi > ---------------------------------------------------------------------- > > Key: DERBY-3786 > URL: https://issues.apache.org/jira/browse/DERBY-3786 > Project: Derby > Issue Type: Bug > Components: Services > Affects Versions: 10.5.0.0 > Environment: 32 hardware execution threads > Reporter: Kristian Waagan > Assignee: Knut Anders Hatlen > Priority: Minor > Fix For: 10.4.2.0, 10.5.0.0 > > Attachments: d3786.java, remove.diff, remove_v2.diff > > > When running stress.multi on a machine with 32 hardware execution threads, I observed the following assert failure in two independent runs: > ----- > 2008-07-18 02:15:14.415 GMT Thread[Thread-8,5,workers] (XID = 94699), (SESSIONID = 16923), (DATABASE = mydb), (DRDAID = null), Failed Statement is: insert into a values (1) > org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED > at org.apache.derby.shared.common.sanity.SanityManager.ASSERT(SanityManager.java:98) > at org.apache.derby.impl.services.cache.CacheEntry.unkeepForRemove(CacheEntry.java:217) > at org.apache.derby.impl.services.cache.ConcurrentCache.remove(ConcurrentCache.java:446) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.removeStatement(GenericLanguageConnectionContext.java:898) > at org.apache.derby.impl.sql.GenericStatement.prepMinion(GenericStatement.java:516) > at org.apache.derby.impl.sql.GenericStatement.prepare(GenericStatement.java:88) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(GenericLanguageConnectionContext.java:794) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:606) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:555) > at org.apache.derby.impl.tools.ij.ij.executeImmediate(ij.java:329) > at org.apache.derby.impl.tools.ij.utilMain.doCatch(utilMain.java:508) > at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:350) > at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:248) > at org.apache.derby.impl.tools.ij.mtTestCase.runMe(mtTestCase.java:246) > at org.apache.derby.impl.tools.ij.mtTester.run(mtTester.java:91) > at java.lang.Thread.run(Thread.java:619) > Cleanup action completed > ----- > In stress.log: > ----- > Tester8: insert2 Fri Jul 18 04:15:12 CEST 2008 > Tester6: TERMINATING due to unexpected error: > FatalException: XJ001: Java exception: 'ASSERT FAILED: org.apache.derby.shared.common.sanity.AssertFailure'. > Tester1: SELECT2 Fri Jul 18 04:15:13 CEST 2008 > Tester8: stopping on request after 820 iterations > Tester10: stopping on request after 859 iterations > Tester1: stopping on request after 847 iterations > Tester7: TERMINATING due to unexpected error: > FatalException: XJ001: Java exception: 'ASSERT FAILED: org.apache.derby.shared.common.sanity.AssertFailure'. > Tester9: stopping on request after 722 iterations > Tester3: stopping on request after 880 iterations > Tester5: stopping on request after 858 iterations > Tester4: stopping on request after 839 iterations > WARNING: testers didn't die willingly, so I'm going to kill 'em. > This may result in connection resources that aren't cleaned up > (e.g. you may see problems in the final script run with deadlocks). > ----- > A few runs on a similar but slightly slower machine didn't experience the same failure, so the bug is likely timing dependent. > I'll perform some more runs and see how hard it is to reproduce. > I haven't investigated what will happen in an insane build. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.