]
Serg Jakean19019 updated WFLY-6106:
-----------------------------------
Priority: Major (was: Optional)
Exception is thrown during access, setting of cache in Infinispan in
cluster with two nodes
-------------------------------------------------------------------------------------------
Key: WFLY-6106
URL:
https://issues.jboss.org/browse/WFLY-6106
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 9.0.1.Final
Reporter: Serg Jakean19019
Assignee: Paul Ferraro
Attachments: logErrorsInfiniSpan.txt
Exception is thrown during access and setting of cache in Infinispan. The error occurs
not immediately.
Konfiguration des CacheContainer:
<cache-container name="customCache" default-cache="cachedb">
<transport lock-timeout="60000"/>
<replicated-cache name="cachedb" mode="SYNC">
<locking isolation="READ_COMMITTED"
striping="false" acquire-timeout="60000"
concurrency-level="1000"/>
<transaction mode="BATCH"/>
<expiration lifespan="15000"/>
</replicated-cache>
</cache-container>
Access of cache from Java:
@Resource(lookup = "java:jboss/infinispan/container/customCache")
private CacheContainer cc;
private Map<String, Object> cache;
public void setInInfiniSpan(String name, Object object) {
Cache<Object,Object> cache = cc.getCache();
TransactionManager tm = cache.getAdvancedCache().getTransactionManager();
try {
cache.startBatch();
cache.put(name, object);
cache.endBatch(true);
} catch (SecurityException e) {
// TODO Auto-generated catch block
logger.error("SecurityException: "+e.getMessage(), e);
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
logger.error("IllegalStateException: "+e.getMessage(), e);
}
}
Logs: