]
Dan Berindei updated ISPN-9112:
-------------------------------
Status: Open (was: New)
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.