You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2011/03/09 11:34:59 UTC

[jira] Updated: (DERBY-5114) Assert failure in SavepointJdbc30Test.testReleaseSqlSavepointAndRollback

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

Knut Anders Hatlen updated DERBY-5114:
--------------------------------------

    Attachment: derby-5114-1a.diff

The problem appears to be that some of the test cases insert rows into the test tables and don't clean up the tables when they're done. Depending on the order in which the test cases run, testReleaseSqlSavepointAndRollback may or may not see rows inserted by preceding test cases. The attached patch makes setUp() clear the tables before each test case.

> Assert failure in SavepointJdbc30Test.testReleaseSqlSavepointAndRollback
> ------------------------------------------------------------------------
>
>                 Key: DERBY-5114
>                 URL: https://issues.apache.org/jira/browse/DERBY-5114
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: derby-5114-1a.diff
>
>
> Seen in nightly testing on Java 7:
> http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/testlog/vista-64/1078855-suitesAll_diff.txt
> 23) testReleaseSqlSavepointAndRollback(org.apache.derbyTesting.functionTests.tests.jdbcapi.SavepointJdbc30Test)junit.framework.AssertionFailedError: expected:<6> but was:<0>
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.SavepointJdbc30Test.testReleaseSqlSavepointAndRollback(SavepointJdbc30Test.java:775)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira