hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject More heap space for unit tests
Date Tue, 22 Nov 2011 22:01:32 GMT
Hi,
I found the following in
https://builds.apache.org/view/G-L/view/HBase/job/HBase-0.92-security/lastCompletedBuild/console
:

Running org.apache.hadoop.hbase.master.TestDistributedLogSplitting
Exception in thread "ThreadedStreamConsumer"
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:2882)
	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
	at java.lang.StringBuffer.append(StringBuffer.java:224)
	at org.apache.maven.surefire.report.TestSetRunListener.getAsString(TestSetRunListener.java:201)
	at org.apache.maven.surefire.report.TestSetRunListener.testError(TestSetRunListener.java:139)
	at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.consumeLine(ForkClient.java:112)
Running org.apache.hadoop.hbase.master.TestMasterFailover
Exception in thread "ThreadedStreamConsumer"
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:2882)
	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
	at java.lang.StringBuffer.append(StringBuffer.java:224)
	at org.apache.maven.surefire.report.TestSetRunListener.getAsString(TestSetRunListener.java:201)
	at org.apache.maven.surefire.report.TestSetRunListener.testError(TestSetRunListener.java:139)

Currently each unit test is given 1.9GB of heap.
I think we should give more heap to the tests.

Cheers

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message