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

rolf.lear at algorithmics.com rolf.lear at algorithmics.com
Fri Feb 20 05:58:22 EST 2009


Running against Oracle ;-)

 

Thanks.

 

The actual failing test is inconsistent. The fact that it fails is not.
I have gone with 1024m because it is easily available.

 

Thanks

 

Rolf

 

________________________________

From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org]
On Behalf Of Julian Hyde
Sent: Friday, February 20, 2009 3:18 AM
To: 'Mondrian developer mailing list'
Subject: RE: [Mondrian] JUnit tests suite - recommended changes. #625

 

I've not seen that cognos test failing with out-of-memory. Maybe, as you
suspect, 64 bit uses 2x the memory. Try doubling to 512Mb.

 

What database are you running against? There have been 6 errors against
Oracle for some time. I emailed Matt Campbell about them earlier today.

 

Julian

	 

	
________________________________


	From: mondrian-bounces at pentaho.org
[mailto:mondrian-bounces at pentaho.org] On Behalf Of
rolf.lear at algorithmics.com
	Sent: Thursday, February 19, 2009 7:03 PM
	To: mondrian at pentaho.org
	Subject: [Mondrian] JUnit tests suite - recommended changes.
#625

	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.

	
________________________________



 
--------------------------------------------------------------------------
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/20090220/1e2870bd/attachment.html 


More information about the Mondrian mailing list