[ https://issues.apache.org/jira/browse/GEODE-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14974773#comment-14974773 ]
ASF subversion and git services commented on GEODE-348: ------------------------------------------------------- Commit 6aadbf81c8d8549cd82ae73994997f3a9e83c060 in incubator-geode's branch refs/heads/develop from [~dschneider] [ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=6aadbf8 ] GEODE-96: fix race in unit test It looks like the problem might have been that the test only waited 5 seconds for an event. It now waits 30 seconds. It also now can sense more of what is happening on the OffHeapMemmoryMonitor using the new testHook OffHeapMemoryMonitorObserver. If this problem reproduces then the test can add additional validation to its observer to narrow down what the cause of the missing event is. This also fixes GEODE-348. > MemoryThresholdsOffHeapDUnitTest.testPRClientPutRejection fail intermittently > with "Expected to go normal" > ---------------------------------------------------------------------------------------------------------- > > Key: GEODE-348 > URL: https://issues.apache.org/jira/browse/GEODE-348 > Project: Geode > Issue Type: Bug > Reporter: Darrel Schneider > Assignee: Darrel Schneider > Labels: CI > > This test has been failing intermittently on internal builds. Here is an > example: > {code} > at > com.gemstone.gemfire.cache.management.MemoryThresholdsOffHeapDUnitTest.doClientServerTest(MemoryThresholdsOffHeapDUnitTest.java:1455) > at > com.gemstone.gemfire.cache.management.MemoryThresholdsOffHeapDUnitTest.testPRClientPutRejection(MemoryThresholdsOffHeapDUnitTest.java:1301) > [snip] > Caused by: junit.framework.AssertionFailedError: Event never occurred after > 5000 ms: Expected to go normal > at junit.framework.Assert.fail(Assert.java:57) > at junit.framework.TestCase.fail(TestCase.java:227) > at > dunit.DistributedTestCase.waitForCriterion(DistributedTestCase.java:1162) > at > com.gemstone.gemfire.cache.management.MemoryThresholdsOffHeapDUnitTest$42.run(MemoryThresholdsOffHeapDUnitTest.java:1473) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)