]
Dan Berindei resolved ISPN-7554.
--------------------------------
Fix Version/s: 9.1.0.Final
Resolution: Done
Fixed with ISPN-6971
JGroupsTransport should expose the cluster view information
atomically
----------------------------------------------------------------------
Key: ISPN-7554
URL:
https://issues.jboss.org/browse/ISPN-7554
Project: Infinispan
Issue Type: Bug
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 9.1.0.Final
Currently the view is updated while holding a lock, but reading the view id, members, or
coordinator is done without a lock. This means when a thread sends a request and receives
a {{SuspectException}}, it cannot simply wait for a new view before retrying: the initial
request may have used the latest view, and only the members list could be outdated (even
if read later).
To allow atomically reading the view id and the member list, we should use an immutable
structure similar to {{CacheTopology}}.