Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 838109C59 for ; Fri, 24 Feb 2012 01:20:13 +0000 (UTC) Received: (qmail 41787 invoked by uid 500); 24 Feb 2012 01:20:13 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 41762 invoked by uid 500); 24 Feb 2012 01:20:13 -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 41754 invoked by uid 99); 24 Feb 2012 01:20:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 01:20:13 +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; Fri, 24 Feb 2012 01:20:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BC92A3376C3 for ; Fri, 24 Feb 2012 01:19:48 +0000 (UTC) Date: Fri, 24 Feb 2012 01:19:48 +0000 (UTC) From: "Myrna van Lunteren (Commented) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1428471564.13059.1330046388773.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <358047884.3036.1329759580908.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5624) System can run out of stack space while processing DropOnCommit requests. 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-5624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215293#comment-13215293 ] Myrna van Lunteren commented on DERBY-5624: ------------------------------------------- Oddly enough, after the latest change, I saw another failure with the largeDataTest suite: 1) LobLimitsTestjava.sql.SQLException: Table/View 'BLOBTBL' already exists in Schema 'APP'. at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source) at org.apache.derby.client.am.Statement.execute(Unknown Source) at org.apache.derbyTesting.functionTests.tests.largedata.LobLimitsTest.setupTables(LobLimitsTest.java:107) at org.apache.derbyTesting.functionTests.tests.largedata.LobLimitsTest$1.decorateSQL(LobLimitsTest.java:141) at org.apache.derbyTesting.junit.CleanDatabaseTestSetup.setUp(CleanDatabaseTestSetup.java:112) at junit.extensions.TestSetup$1.protect(TestSetup.java:20) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) Caused by: org.apache.derby.client.am.SqlException: Table/View 'BLOBTBL' already exists in Schema 'APP'. at org.apache.derby.client.am.Statement.completeSqlca(Unknown Source) at org.apache.derby.client.am.Statement.completeExecuteImmediate(Unknown Source) at org.apache.derby.client.net.NetStatementReply.parseEXCSQLIMMreply(Unknown Source) at org.apache.derby.client.net.NetStatementReply.readExecuteImmediate(Unknown Source) at org.apache.derby.client.net.StatementReply.readExecuteImmediate(Unknown Source) at org.apache.derby.client.net.NetStatement.readExecuteImmediate_(Unknown Source) at org.apache.derby.client.am.Statement.readExecuteImmediate(Unknown Source) at org.apache.derby.client.am.Statement.flowExecute(Unknown Source) at org.apache.derby.client.am.Statement.executeX(Unknown Source) ... 26 more > System can run out of stack space while processing DropOnCommit requests. > ------------------------------------------------------------------------- > > Key: DERBY-5624 > URL: https://issues.apache.org/jira/browse/DERBY-5624 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.8.2.2 > Reporter: Mike Matrigali > Assignee: Mike Matrigali > Labels: derby_triage10_9 > Fix For: 10.9.0.0 > > Attachments: DERBY-5624.patch, error-stacktrace_mod.out, largedatasuite_mod.out > > > The system currently recursively calls xact.notifyObservers() from DropOnCommit.update(). It does this because in some cases > new observers can be added while processing the list of notifyObservers and those were being missed before the change, causing > Assertions in the tests and possibly files not properly dropped on commit. > Multiple users on the Derby user list have had failures running SYSCS_UTIL.SYSCS_COMPRESS_TABLE(), running out of stack track > with a heavily recursive stack trace of the form (see more detail from these reports in subsequent comments): > Caused by: java.lang.StackOverflowError > at java.lang.ThreadLocal.get(ThreadLocal.java:125) > at java.lang.StringCoding.deref(StringCoding.java:46) > at java.lang.StringCoding.encode(StringCoding.java:258) > at java.lang.String.getBytes(String.java:946) > at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) > at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) > at java.io.File.exists(File.java:733) > at org.apache.derby.impl.store.raw.data.StreamFileContainer.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at org.apache.derby.impl.store.raw.data.StreamFileContainer.privExists(Unknown Source) > at org.apache.derby.impl.store.raw.data.StreamFileContainer.open(Unknown Source) > at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openStreamContainer(Unknown Source) > at org.apache.derby.impl.store.raw.xact.Xact.openStreamContainer(Unknown Source) > at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.dropStreamContainer(Unknown Source) > at org.apache.derby.impl.store.raw.xact.Xact.dropStreamContainer(Unknown Source) > at org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown Source) > at java.util.Observable.notifyObservers(Observable.java:142) > at org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown Source) > at org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown Source) > at java.util.Observable.notifyObservers(Observable.java:142) > at org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown Source) > at org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown Source) > at java.util.Observable.notifyObservers(Observable.java:142) > at org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown Source) > at org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown Source) > at java.util.Observable.notifyObservers(Observable.java:142) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira