[ 
https://issues.apache.org/jira/browse/DERBY-6286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697549#comment-13697549
 ] 

Mamta A. Satoor commented on DERBY-6286:
----------------------------------------

The stack trace for testDropWhileScanningThenDelete on 2013-06-28 looks as 
follows
1) 
testDropWhileScanningThenDelete(org.apache.derbyTesting.functionTests.tests.store.AutomaticIndexStatisticsTest)java.sql.SQLTransactionRollbackException:
 A lock could not be obtained within the time requested
        at 
org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown 
Source)
        at 
org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown 
Source)
        at 
org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown 
Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown 
Source)
        at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown 
Source)
        at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown 
Source)
        at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(Unknown 
Source)
        at 
org.apache.derbyTesting.functionTests.tests.store.AutomaticIndexStatisticsTest.testDropWhileScanningThenDelete(AutomaticIndexStatisticsTest.java:228)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at 
org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:113)
        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)
        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)
Caused by: java.sql.SQLException: A lock could not be obtained within the time 
requested
        at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
        at 
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
 Source)
        ... 51 more
Caused by: ERROR 40XL1: A lock could not be obtained within the time requested
        at org.apache.derby.iapi.error.StandardException.newException(Unknown 
Source)
        at 
org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(Unknown 
Source)
        at org.apache.derby.impl.services.locks.AbstractPool.lockObject(Unknown 
Source)
        at 
org.apache.derby.impl.services.locks.ConcurrentPool.lockObject(Unknown Source)
        at 
org.apache.derby.impl.store.raw.xact.ContainerLocking3.lockContainer(Unknown 
Source)
        at 
org.apache.derby.impl.store.raw.data.BaseContainerHandle.useContainer(Unknown 
Source)
        at 
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown 
Source)
        at 
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown 
Source)
        at org.apache.derby.impl.store.raw.xact.Xact.openContainer(Unknown 
Source)
        at 
org.apache.derby.impl.store.access.conglomerate.OpenConglomerate.init(Unknown 
Source)
        at org.apache.derby.impl.store.access.heap.Heap.open(Unknown Source)
        at 
org.apache.derby.impl.store.access.RAMTransaction.openConglomerate(Unknown 
Source)
        at 
org.apache.derby.impl.store.access.RAMTransaction.openConglomerate(Unknown 
Source)
        at 
org.apache.derby.impl.sql.execute.DDLConstantAction.lockTableForDDL(Unknown 
Source)
        at 
org.apache.derby.impl.sql.execute.DropTableConstantAction.executeConstantAction(Unknown
 Source)
        at org.apache.derby.impl.sql.execute.MiscResultSet.open(Unknown Source)
        at 
org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
        at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown 
Source)
        ... 45 more

                
> store.AutomaticIndexStatisticsTest fails intermittently with 'A lock could 
> not be obtained within the time requested' on 10.8 codeline
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-6286
>                 URL: https://issues.apache.org/jira/browse/DERBY-6286
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.8.3.1
>            Reporter: Mamta A. Satoor
>
> There are atleast 4 occurences of these lock timeout exceptions. One of those 
> 4 failures is for testCompressWhileScanning fixture and other 3 are for 
> testDropWhileScanningThenDelete fixture. All these failures are with IBM jdk 
> 1.7 or IBM jdk 1.6. The test failed on following dates
> 1)2012-04-21 - 
> http://people.apache.org/~myrnavl/derby_test_results/v10_8/windows/testSummary-1328766.html
>  - fixture testCompressWhileScanning
> 2)2012-05-16 - for some reason the public 
> website(http://people.apache.org/~myrnavl/derby_test_results/v10_8/windows/testSummary-1339443.html)
>  doesn't show the error but internal IBM run on that day shows following 
> error - 1) 
> testDropWhileScanningThenDelete(org.apache.derbyTesting.functionTests.tests.store.AutomaticIndexStatisticsTest)java.sql.SQLTransactionRollbackException:
>  A lock could not be obtained within the time requested
> 3)2012-07-14 - 
> http://people.apache.org/~myrnavl/derby_test_results/v10_8/windows/testSummary-1361618.html-
>  fixture testDropWhileScanningThenDelete
> 4)2013-06-28 - 
> http://people.apache.org/~myrnavl/derby_test_results/v10_8/windows/testSummary-1497975.html-
>  fixture testDropWhileScanningThenDelete
> There may have been more than these 4 failures but so far, I have been able 
> to locate only these 4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to