[ 
https://issues.apache.org/jira/browse/GEODE-7510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16984669#comment-16984669
 ] 

Alberto Bustamante Reyes commented on GEODE-7510:
-------------------------------------------------

I have been doing some tests, and it seems the problem is at some point between 
the creation of the partitioned region on vm1, and the destroy of the entries. 
If I set a sleep of 2 seconds between these operations, the test case does not 
fail (I tested with 200 repetitions, like you did).
Without that "sleep", I have seen that everytime the test fails, there are 
entries in the region after the destroy, this is why the currentAllocatedMemory 
is not 0. 

Could you please share what was exactly the problem in "bug 39868"?

> PartitionedRegionSizeDUnitTest.testBug39868 is flaky
> ----------------------------------------------------
>
>                 Key: GEODE-7510
>                 URL: https://issues.apache.org/jira/browse/GEODE-7510
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Juan Ramos
>            Priority: Major
>
> I've came across this one during the [CI 
> run|https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-pr/jobs/DistributedTestOpenJDK11/builds/5194]
>  for one of my {{Pull Request}}:
> {noformat}
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest > testBug39868 
> FAILED
>     org.apache.geode.test.dunit.RMIException: While invoking 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest$$Lambda$47/883874659.run
>  in VM 1 running on Host localhost with 4 VMs
>         at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:610)
>         at org.apache.geode.test.dunit.VM.invoke(VM.java:437)
>         at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.testBug39868(PartitionedRegionSizeDUnitTest.java:126)
>         Caused by:
>         org.junit.ComparisonFailure: expected:<[0]L> but was:<[672]L>
>             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>             at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>             at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>             at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.lambda$testBug39868$bb17a952$5(PartitionedRegionSizeDUnitTest.java:129)
> {noformat}
> Below are the results from running the test 200 times locally with the latest 
> {{develop}} branch:
> {noformat}
> $ geode (develop)> git log -n 3 --oneline
> 6933232574 (HEAD -> develop, origin/develop, origin/HEAD) GEODE-7487: Update 
> Running CQ Context (#4369)
> 94ec51b35e GEODE-7496 - Decouple management API from Gfsh RebalanceCommand 
> (#4370)
> 3b85e5cb88 GEODE-7436: Deploy jar using semantic versioning scheme  (#4382)
> $ geode (develop)> ./gradlew repeatDistributedTest --no-parallel -Prepeat=200 
> -PfailOnNoMatchingTests=false --tests 
> PartitionedRegionSizeDUnitTest.testBug39868
> > Task :geode-core:repeatDistributedTest
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest > testBug39868 
> FAILED
>     org.apache.geode.test.dunit.RMIException: While invoking 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest$$Lambda$31/214451470.run
>  in VM 1 running on Host localhost with 4 VMs
>         at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:610)
>         at org.apache.geode.test.dunit.VM.invoke(VM.java:437)
>         at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.testBug39868(PartitionedRegionSizeDUnitTest.java:126)
>         Caused by:
>         org.junit.ComparisonFailure: expected:<[]0L> but was:<[56]0L>
>             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>             at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>             at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>             at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.lambda$testBug39868$bb17a952$5(PartitionedRegionSizeDUnitTest.java:129)
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest > testBug39868 
> FAILED
>     org.apache.geode.test.dunit.RMIException: While invoking 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest$$Lambda$31/214451470.run
>  in VM 1 running on Host localhost with 4 VMs
>         at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:610)
>         at org.apache.geode.test.dunit.VM.invoke(VM.java:437)
>         at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.testBug39868(PartitionedRegionSizeDUnitTest.java:126)
>         Caused by:
>         org.junit.ComparisonFailure: expected:<[]0L> but was:<[56]0L>
>             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>             at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>             at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>             at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.lambda$testBug39868$bb17a952$5(PartitionedRegionSizeDUnitTest.java:129)
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest > testBug39868 
> FAILED
>     org.apache.geode.test.dunit.RMIException: While invoking 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest$$Lambda$31/214451470.run
>  in VM 1 running on Host localhost with 4 VMs
>         at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:610)
>         at org.apache.geode.test.dunit.VM.invoke(VM.java:437)
>         at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.testBug39868(PartitionedRegionSizeDUnitTest.java:126)
>         Caused by:
>         org.junit.ComparisonFailure: expected:<[]0L> but was:<[56]0L>
>             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>             at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>             at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>             at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.lambda$testBug39868$bb17a952$5(PartitionedRegionSizeDUnitTest.java:129)
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest > testBug39868 
> FAILED
>     org.apache.geode.test.dunit.RMIException: While invoking 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest$$Lambda$31/214451470.run
>  in VM 1 running on Host localhost with 4 VMs
>         at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:610)
>         at org.apache.geode.test.dunit.VM.invoke(VM.java:437)
>         at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.testBug39868(PartitionedRegionSizeDUnitTest.java:126)
>         Caused by:
>         org.junit.ComparisonFailure: expected:<[]0L> but was:<[56]0L>
>             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>             at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>             at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>             at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.lambda$testBug39868$bb17a952$5(PartitionedRegionSizeDUnitTest.java:129)
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest > testBug39868 
> FAILED
>     org.apache.geode.test.dunit.RMIException: While invoking 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest$$Lambda$31/214451470.run
>  in VM 1 running on Host localhost with 4 VMs
>         at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:610)
>         at org.apache.geode.test.dunit.VM.invoke(VM.java:437)
>         at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.testBug39868(PartitionedRegionSizeDUnitTest.java:126)
>         Caused by:
>         org.junit.ComparisonFailure: expected:<[0]L> but was:<[672]L>
>             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>             at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>             at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>             at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.lambda$testBug39868$bb17a952$5(PartitionedRegionSizeDUnitTest.java:129)
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest > testBug39868 
> FAILED
>     org.apache.geode.test.dunit.RMIException: While invoking 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest$$Lambda$31/214451470.run
>  in VM 1 running on Host localhost with 4 VMs
>         at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:610)
>         at org.apache.geode.test.dunit.VM.invoke(VM.java:437)
>         at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.testBug39868(PartitionedRegionSizeDUnitTest.java:126)
>         Caused by:
>         org.junit.ComparisonFailure: expected:<[]0L> but was:<[56]0L>
>             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>             at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>             at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>             at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.lambda$testBug39868$bb17a952$5(PartitionedRegionSizeDUnitTest.java:129)
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest > testBug39868 
> FAILED
>     org.apache.geode.test.dunit.RMIException: While invoking 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest$$Lambda$31/214451470.run
>  in VM 1 running on Host localhost with 4 VMs
>         at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:610)
>         at org.apache.geode.test.dunit.VM.invoke(VM.java:437)
>         at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.testBug39868(PartitionedRegionSizeDUnitTest.java:126)
>         Caused by:
>         org.junit.ComparisonFailure: expected:<[0]L> but was:<[112]L>
>             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>             at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>             at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>             at 
> org.apache.geode.internal.cache.PartitionedRegionSizeDUnitTest.lambda$testBug39868$bb17a952$5(PartitionedRegionSizeDUnitTest.java:129)
> 200 tests completed, 7 failed
> > Task :geode-core:repeatDistributedTest FAILED
> BUILD FAILED in 4m 41s
> 185 actionable tasks: 17 executed, 168 up-to-date
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to