[infinispan-issues] [JBoss JIRA] (ISPN-9112) getCache() should not wait for the initial state transfer by default

Dan Berindei (JIRA) issues at jboss.org
Mon Apr 30 08:44:00 EDT 2018


Dan Berindei created ISPN-9112:
----------------------------------

             Summary: getCache() should not wait for the initial state transfer by default
                 Key: ISPN-9112
                 URL: https://issues.jboss.org/browse/ISPN-9112
             Project: Infinispan
          Issue Type: Enhancement
          Components: Configuration, Core
    Affects Versions: 9.2.1.Final
            Reporter: Dan Berindei
            Assignee: Dan Berindei
             Fix For: 9.3.0.Beta1


{{DefaultCacheManager.getCache(name)}} normally blocks until the local node becomes a full member of the consistent hash and the rebalance has finished. This can cause problems when rebalancing is disabled, either explicitly by the administrator, or implicitly because the cache is in degraded mode.

Blocking can be disabled with {{builder.clustering().stateTransfer().awaitInitialTransfer(false)}} ({{await-initial-transfer="false"}} in XML}}, but we should make the non-blocking behaviour the default. We should also deprecate the method and attribute to enable the blocking behaviour, and instead add a method to {{AdvancedCache}} to wait for the initial state transfer.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list