[infinispan-issues] [JBoss JIRA] (ISPN-9173) Availability mode should be updated atomically with the actual members
Dan Berindei (JIRA)
issues at jboss.org
Thu May 17 10:26:00 EDT 2018
Dan Berindei created ISPN-9173:
----------------------------------
Summary: Availability mode should be updated atomically with the actual members
Key: ISPN-9173
URL: https://issues.jboss.org/browse/ISPN-9173
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.3.0.Beta1
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.3.0.CR1
This is a follow-up on ISPN-7682, which asks for the topology itself to be updated atomically.
{{LocalTopologyManagerImpl}} has additional logic to update the availability mode first when the cache becomes degraded and to update it last when the cache becomes available, which means any delay between the updates cannot cause data inconsistencies.
But that logic doesn't really belong in {{LocalTopologyManagerImpl}}, and it's easy to forget it's there (and in fact we had a bug there related to the new rebalance phases).
In addition, tests that want to check the cache behaviour in degraded mode and wait only for the availability mode change will fail if there's a big delay between the availability mode change. I actually hit this while testing my ISPN-8731/ISPN-7682 changes, and I had added a random delay in {{StateConsumerImpl}} before {{distributionManager.setCacheTopology()}}.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list