[Mondrian] JUnit tests suite - recommended changes. #625

rolf.lear at algorithmics.com rolf.lear at algorithmics.com
Thu Feb 19 22:02:46 EST 2009


Hi all.

 

I pulled the latest source code snapshot from the Hudson dashboard.

 

Unzipped in to a clean folder, edited the properties file to put in my
database connection details, and using java version:

mondrian-3.1-SNAPSHOT% java -version

java version "1.5.0_14"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)

Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_14-b03, mixed mode)

 

I ran "ant test".

 

My results were surprising for two reasons.

 

First, I got 6 failures, and 1 error.

 

Second, the error I got was an out-of-memory error....

 

 

     [java] There was 1 error:

     [java] 1)
testCognosMDXSuiteConvertedAdventureWorksToFoodMart_012(mondrian.xmla.Xm
laCognosTest)java.lang.OutOfMemoryError: Java heap space

     [java]     at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.jav
a:99)

     [java]     at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)

     [java]     at java.lang.StringBuffer.append(StringBuffer.java:225)

     [java]     at java.io.StringWriter.write(StringWriter.java:79)

     [java]     at
org.apache.xml.serialize.IndentPrinter.flushLine(Unknown Source)

     [java]     at
org.apache.xml.serialize.IndentPrinter.breakLine(Unknown Source)

     [java]     at
org.apache.xml.serialize.IndentPrinter.breakLine(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.endElementIO(Unknown Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)

     [java]     at
org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)

     [java]     at
org.apache.xml.serialize.BaseMarkupSerializer.serialize(Unknown Source)

     [java]     at mondrian.tui.XmlUtil.toString(XmlUtil.java:775)

     [java]     at
mondrian.xmla.XmlaBaseTestCase.doTests(XmlaBaseTestCase.java:404)

     [java]     at
mondrian.xmla.XmlaBaseTestCase.doTestInline(XmlaBaseTestCase.java:289)

     [java]     at
mondrian.xmla.XmlaBaseTestCase.doTest(XmlaBaseTestCase.java:246)

     [java]     at
mondrian.xmla.XmlaBaseTestCase.doTest(XmlaBaseTestCase.java:236)

     [java]     at
mondrian.xmla.XmlaCognosTest.executeMDX(XmlaCognosTest.java:198)

     [java]     at
mondrian.xmla.XmlaCognosTest.testCognosMDXSuiteConvertedAdventureWorksTo
FoodMart_012(XmlaCognosTest.java:86)

     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

 

 

I am still working on the 6 failures, but, the fix for the error is to
increase the size of the heap for the junit.jvmargs property in the
build.xml file. 256m is too small it seems. (I used 1g, but perhaps
that's too much?)

 

This would be an easy change.

 

Perhaps it is because I am using 64bit on linux?

 

Thanks

 

Rolf


 
--------------------------------------------------------------------------
This email and any files transmitted with it are confidential and proprietary to Algorithmics Incorporated and its affiliates ("Algorithmics"). If received in error, use is prohibited. Please destroy, and notify sender. Sender does not waive confidentiality or privilege. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Algorithmics does not accept liability for any errors or omissions. Any commitment intended to bind Algorithmics must be reduced to writing and signed by an authorized signatory.
--------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20090219/ef960f5a/attachment.html 


More information about the Mondrian mailing list