db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-6306) XplainStatisticsTest.testSimpleQuery: BEGIN_COMP_TIME unexpectedly NULL
Date Wed, 28 Aug 2013 10:35:52 GMT

     [ https://issues.apache.org/jira/browse/DERBY-6306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-6306:
--------------------------------------

    Attachment: d6306-1a.diff

Attaching d6306-1a.diff which makes XplainStatisticsTest clear the statement cache from its
setUp() method, so that the test cases needn't worry about what the earlier test cases did.

The method that clears the statement cache has been separated out in a helper method, BaseJDBCTestCase.emptyStatementCache(),
so that it can be reused. (It's used in a similar way in StatementPlanCacheTest.)

This seems to have taken care of the intermittent failure in my environment.
                
> XplainStatisticsTest.testSimpleQuery: BEGIN_COMP_TIME unexpectedly NULL
> -----------------------------------------------------------------------
>
>                 Key: DERBY-6306
>                 URL: https://issues.apache.org/jira/browse/DERBY-6306
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.11.0.0
>         Environment: windows_ia32_jdk7
> windows_amd64_jdk8
>            Reporter: Knut Anders Hatlen
>         Attachments: d6306-1a.diff
>
>
> Seen on two platforms in nightly testing of trunk revision 1506904:
> http://download.java.net/javadesktop/derby/request_5579443/javadb-task-3691350.html
> http://download.java.net/javadesktop/derby/request_5579443/javadb-task-3691354.html
> junit.framework.AssertionFailedError: BEGIN_COMP_TIME unexpectedly NULL
> 	at org.apache.derbyTesting.functionTests.tests.lang.XplainStatisticsTest.getNonNullTimestamp(XplainStatisticsTest.java:1538)
> 	at org.apache.derbyTesting.functionTests.tests.lang.XplainStatisticsTest.verifySensibleStatementTimings(XplainStatisticsTest.java:1417)
> 	at org.apache.derbyTesting.functionTests.tests.lang.XplainStatisticsTest.testSimpleQuery(XplainStatisticsTest.java:1038)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:439)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:456)
> 	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)

--
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

Mime
View raw message