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

Kathey Marsden commented on DERBY-4540:
---------------------------------------

So the assertion that fails is:
      assertTrue(rtsp.findString("Number of pages visited="+expPages, 1));

One nice improvement to the test would be for the expected and actual value to 
print.
Tracing back I think here we are expecting to visit just one page, so 
presumably it is something more than that when we fail.

In DERBY-5113 Knut mentioned that there might be scenarios where 
derby.storage.pageSize  is not reset properly between fixtures.  I wonder if 
that is what happens with this failure as a wrong pageSize could certainly 
cause this problem.   I think there is a pretty good chance this won't happen 
again now that the property reset code has been added to tearDown in the test.  
I think we should wait a month and see if it happens again and if not resolve 
this issue.






> 'AssertionFailedError' in 
> 'store.AccessTest.testCS4595B_UniqueIndex(AccessTest.java:1729)' on SUSE 
> Linux / IBM JIT  - r9
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4540
>                 URL: https://issues.apache.org/jira/browse/DERBY-4540
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0
>         Environment: OS:
> SUSE Linux Enterprise Server 10 (i586) [Version 10 / Patchlevel 2] 32bits
> Linux 2.6.16.60-0.21-bigsmp #1 SMP Tue May 6 12:41:02 UTC 2008 GNU/Linux
> JVM:
> IBM Corporation
> JIT  - r9_20090518_2017
> GC   - 20090417_AA)
> JCL  - 20090529_01
>            Reporter: Ole Solberg
>              Labels: derby_triage10_8
>
> See
> http://dbtg.foundry.sun.com/derby/test/trunk16/jvmAll/testing/testlog/JDK16_IBM60Linux-2.6.16.60-0.21-bigsmp_i686-i686/907276-org.apache.derbyTesting.functionTests.suites.All_diff.txt
>  :
> There was 1 failure:
> 1) 
> testCS4595B_UniqueIndex(org.apache.derbyTesting.functionTests.tests.store.AccessTest)junit.framework.AssertionFailedError
>       at 
> org.apache.derbyTesting.functionTests.tests.store.AccessTest.assertStatsOK(AccessTest.java:363)
>       at 
> org.apache.derbyTesting.functionTests.tests.store.AccessTest.doTestCaseCS4595B(AccessTest.java:1669)
>       at 
> org.apache.derbyTesting.functionTests.tests.store.AccessTest.testCS4595B_UniqueIndex(AccessTest.java:1729)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>       at 
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
>       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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to