[
https://issues.jboss.org/browse/ISPN-6910?page=com.atlassian.jira.plugin....
]
Radim Vansa commented on ISPN-6910:
-----------------------------------
Writing a custom CHF and KP requires non-trivial effort, that's no OOTB solution. I
was addressing random failures I was getting in an existing test (regrettably now I
don't recall which one it was out of my head).
Random failures due to MagicKey
-------------------------------
Key: ISPN-6910
URL:
https://issues.jboss.org/browse/ISPN-6910
Project: Infinispan
Issue Type: Enhancement
Components: Test Suite - Core
Affects Versions: 9.0.0.Alpha3
Reporter: Radim Vansa
Assignee: Radim Vansa
Fix For: 9.0.0.Beta1, 9.0.0.Final
There is a fixed 1000-iteration loop to find out proper key. In tests that create many
magic keys, the cumulative probability of failing one of the keys' generation is going
up and this is causing random failures in the testsuite.
Moreover, the equality of magic keys is based only on the hashCode - with many keys,
there is a non-trivial chance that the hashcodes will make two logically different keys
equal.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)