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

Ugo Matrangolo commented on DERBY-2543:
---------------------------------------

I did a little debug on OptimizerFactoryImpl.boot() . Seems that the different 
behavior is here. When i run the suite where updateCursor is the first test in 
test list , it gets the correct value from Optimizer.MAX_MEMORY_PER_TABLE. When 
i run the suite that fails the boot() method gets a null. The boot() method is 
called once.

can updateCursor() suceeds only if it is the first test to run ??



>  testVirtualMemoryHeap junit test fails with "Virtual memory heap test 
> failed! Got unexpected value. expected:<202> but was:<103>"
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2543
>                 URL: https://issues.apache.org/jira/browse/DERBY-2543
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.3.0.0
>            Reporter: Mike Matrigali
>             Fix For: 10.3.0.0
>
>
> junit suite fails with the following error:
> 2) 
> testVirtualMemoryHeap(org.apache.derbyTesting.functionTests.tests.lang.UpdateCursorTest)junit.framework.AssertionFailedError:
>  Virtual memory heap test failed! Got unexpected value. expected:<202> but 
> was:<103>
>       at 
> org.apache.derbyTesting.functionTests.tests.lang.UpdateCursorTest.testVirtualMemoryHeap(UpdateCursorTest.java:178)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at 
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
>       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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to