]
Tristan Tarrant updated ISPN-7166:
----------------------------------
Fix Version/s: 12.0.0.Dev02
(was: 12.0.0.Dev01)
WriteSkewConsistencyTest.testValidationOnlyInPrimaryOwner[DIST_SYNC]
random failures
------------------------------------------------------------------------------------
Key: ISPN-7166
URL:
https://issues.redhat.com/browse/ISPN-7166
Project: Infinispan
Issue Type: Bug
Components: Test Suite
Affects Versions: 9.0.0.Alpha4
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Labels: testsuite_stability
Fix For: 11.0.2.Final, 12.0.0.Dev02
The test requires a key to have a specific primary owner and backup owner, but because is
uses the default {{SynchronizedConsistentHashFactory}}, sometimes there's no segment
meeting that requirement.
{noformat}
16:52:02,516 ERROR (testng-WriteSkewConsistencyTest[DIST_SYNC]:[]) [TestSuiteProgress]
Test failed:
org.infinispan.container.versioning.WriteSkewConsistencyTest.testValidationOnlyInPrimaryOwner[DIST_SYNC]
java.lang.IllegalStateException: Could not find any segment owned by Cache
'___defaultcache'@WriteSkewConsistencyTest[DIST_SYNC]-NodeB-47455, [Cache
'___defaultcache'@WriteSkewConsistencyTest[DIST_SYNC]-NodeA-21455], primary
segments: [33, 2, 3, 5, 37, 6, 41, 10, 45, 15, 48, 18, 50, 25, 59, 29], backup segments:
{Cache '___defaultcache'@WriteSkewConsistencyTest[DIST_SYNC]-NodeA-21455=[35, 8,
40, 12, 14, 52, 21, 53, 22, 24, 57, 58, 27, 31]}
at org.infinispan.distribution.MagicKey.<init>(MagicKey.java:85)
~[test-classes/:?]
at org.infinispan.distribution.MagicKey.<init>(MagicKey.java:136)
~[test-classes/:?]
at
org.infinispan.container.versioning.WriteSkewConsistencyTest.testValidationOnlyInPrimaryOwner(WriteSkewConsistencyTest.java:58)
~[test-classes/:?]
{noformat}
The test should either use a fixed key and accept random owners, or use a
{{ControlledConsistentHashFactory}} to pin the owners.