hazelcast/hazelcast-hibernate

Test failure: RegionFactoryQueryCacheEvictionSlowTest.testQueryCacheCleanup

leszko opened this issue · 2 comments

One of unit tests fail.

$ mvn clean install
...
Failed tests:
  RegionFactoryQueryCacheEvictionSlowTest.testQueryCacheCleanup:102 Number of evictions expected:<60> but was:<0>

Tests run: 109, Failures: 1, Errors: 0, Skipped: 4

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] hazelcast-hibernate5 1.3.2-SNAPSHOT ................ SUCCESS [  6.336 s]
[INFO] hazelcast-hibernate5 ............................... SUCCESS [05:22 min]
[INFO] hazelcast-hibernate52 .............................. SUCCESS [05:05 min]
[INFO] hazelcast-hibernate53 1.3.2-SNAPSHOT ............... FAILURE [04:56 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:31 min
[INFO] Finished at: 2019-02-28T16:06:25Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project hazelcast-hibernate53: There are test failures.

@leszko I think this is the reason why the test can be flakey:

  • the TestCacheRegionFactory was still using a cleanup period of 12 seconds, while the testQueryCacheCleanup test itself was using 6 seconds (the value from TestLocalCacheRegionFactory)

I have raised a PR #58 with a fix, to make TestCacheRegionFactory use the same value from TestLocalCacheRegionFactory

Closed by #58