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

Eric Shu commented on GEODE-6820:
---------------------------------

This is caused by recent changes that all latches are final and all latches are 
countDown in tearDown. So the latches have effect only on the first test method 
run in the test, as other tests all have latches of count of 0 after test run.

  @After
  public void tearDown() {
    for (VM vm : VM.toArray(vm0, vm1, getController())) {
      vm.invoke(() -> {
        opsLatch.countDown();
        regionLatch.countDown();
        verifyLatch.countDown();
      });
    }
  }

> CI Failure: ClearTXLockingDUnitTest > testPutWithClearDifferentVM
> -----------------------------------------------------------------
>
>                 Key: GEODE-6820
>                 URL: https://issues.apache.org/jira/browse/GEODE-6820
>             Project: Geode
>          Issue Type: Test
>          Components: transactions
>            Reporter: Jens Deppe
>            Priority: Major
>              Labels: GeodeCommons
>
> CI failure:
> {noformat}
> org.apache.geode.internal.cache.ClearTXLockingDUnitTest > 
> testPutWithClearDifferentVM FAILED
>     org.junit.ComparisonFailure: [region contents are not consistent for key 
> testRegion1theKey0] expected:<"theValue0"> but was:<null>
>         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.ClearTXLockingDUnitTest.checkForConsistencyErrors(ClearTXLockingDUnitTest.java:344)
>         at 
> org.apache.geode.internal.cache.ClearTXLockingDUnitTest.performTestAndCheckResults(ClearTXLockingDUnitTest.java:177)
>         at 
> org.apache.geode.internal.cache.ClearTXLockingDUnitTest.testPutWithClearDifferentVM(ClearTXLockingDUnitTest.java:120)
> {noformat}
> Logs available at:
> http://files.apachegeode-ci.info/builds/apache-develop-main/1.10.0-SNAPSHOT.0316/test-results/distributedTest/1559243936/
> http://files.apachegeode-ci.info/builds/apache-develop-main/1.10.0-SNAPSHOT.0316/test-artifacts/1559243936/distributedtestfiles-OpenJDK8-1.10.0-SNAPSHOT.0316.tgz



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to