2010-12-23 4 views
1

Unter meiner Konfigurationsdatei ist:I Timeout in Infinispan Cache bin immer

<?xml version="1.0" encoding="UTF-8"?> 
<infinispan 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="urn:infinispan:config:4.2 http://www.infinispan.org/schemas/infinispan-config-4.2.xsd" 
     xmlns="urn:infinispan:config:4.2"> 

    <global> 
     <transport clusterName="DEV2" transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport"> 
    <properties> 
    <property name="configurationFile" value="../jgroups-tcp.xml" /> 
    </properties> 
    </transport> 
    </global> 

    <default> 
     <clustering mode="distribution"> 
     <l1 enabled="false"/> 
     <hash numOwners="1" rehashRpcTimeout="120000"/> 
     <sync/> 
     </clustering> 
    <eviction strategy="FIFO" maxEntries="1"/> 
    <expiration lifespan="1000" maxIdle="500" /> 
    </default> 
</infinispan> 

Im Folgenden meine Ausnahme nachzuspüren ist:

Caused by: org.infinispan.util.concurrent.TimeoutException: Unable to acquire lock after [10 seconds] on key [178328] for requestor [Thread[http-10.226.32.128-5000-Processor10,5,main]]! Lock held by [(another thread)] 

Antwort

3

konfiguriert ich die Sperr Eigenschaft useLockStriping = "false". Dadurch wird für jeden zum Cache hinzugefügten Eintrag eine Sperre erstellt. Dies löst mein Problem

Verwandte Themen