[ https://issues.apache.org/jira/browse/PIG-2926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460700#comment-13460700 ]
Koji Noguchi commented on PIG-2926: ----------------------------------- > On my mac, maxMemory() returns 1037959168 whereas on my rhel environemt, it > returns 954466304. > Correction: mac: 1069416448 rhel: 954466304 One difference between the two, on my mac somehow UseConcMarkSweepGC is enabled as default and on rhel it is not. If I add {noformat} <jvmarg line="-XX:+UseConcMarkSweepGC"/> {noformat} inside the build.xml, then this test passes. But the return value of Runtime.getRuntime().maxMemory() is still a bit different (1060372480). Is there a better way to test this method without going through this system call? > TestPoissonSampleLoader failing on rhel environment > --------------------------------------------------- > > Key: PIG-2926 > URL: https://issues.apache.org/jira/browse/PIG-2926 > Project: Pig > Issue Type: Bug > Reporter: Koji Noguchi > Priority: Minor > > Testing on rhel environment, TestPoissonSampleLoader fails with > {noformat} > Testcase: testNumSamples took 22.077 sec > FAILED > expected:<47> but was:<42> > junit.framework.AssertionFailedError: expected:<47> but was:<42> > at > org.apache.pig.test.TestPoissonSampleLoader.testNumSamples(TestPoissonSampleLoader.java:125) > {noformat} > From > {noformat} > 124 count = testNumSamples("0.0001", "100"); > 125 assertEquals(count, 42); > {noformat} > This runs fine on my mac environment. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira