2015-02-10 54 views
0

我們正在使用ModeShape 4.1.0.Final和Infinispan 6.0.2.Final構建我們的內容存儲庫。使用singleFile存儲啓用maxEntries後,我注意到JCR屬性中的某些內容在JCR節點數超過maxEntries時被截斷。這是由於下面的配置或當前版本ModeShape 4.1.0.Final中的錯誤而導致的截斷問題嗎?爲什麼ModeShape JCR屬性中的內容因Infinispan驅逐而被截斷

這裏是振形配置:

{ 
"name" : "Persisted-Repository", 
"jndiName" : "", 
"workspaces" : { 
    "predefined" : ["otherWorkspace"], 
    "default" : "default", 
    "allowCreation" : true 
}, 
"security" : { 
    "anonymous" : { 
     "roles" : ["readonly","readwrite","admin"], 
     "useOnFailedLogin" : false 
    } 
}, 
"storage" : { 
    "cacheConfiguration" : "eviction-test-infinispan-config.xml", 
    "cacheName" : "REPOSITORY", 
    "binaryStorage" : { 
     "type" : "file", 
     "directory": "modeshape/content/binaries", 
     "minimumBinarySizeInBytes" : 1000000 
    } 
}, 
} 

這裏是Infinispan的配置:

<?xml version="1.0" encoding="UTF-8"?> 
<infinispan> 
<global> 
    <globalJmxStatistics enabled="true" 
     allowDuplicateDomains="true" /> 
</global> 
<namedCache name="REPOSITORY"> 
    <!-- single file store --> 
    <persistence passivation="false"> 
     <singleFile shared="true" preload="false" 
      fetchPersistentState="false" ignoreModifications="false" 
      purgeOnStartup="true" location="./infinispan/eviction"> 
     </singleFile> 
    </persistence> 
    <!-- Look for transaction manager first --> 
    <transaction 
     transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup" 
     transactionMode="TRANSACTIONAL" lockingMode="OPTIMISTIC" /> 
    <!-- No more that 10K entries per cache, with LIRS eviction. --> 
    <eviction threadPolicy="DEFAULT" maxEntries="10000" strategy="LIRS" /> 
</namedCache> 
</infinispan> 

回答

1

它是由這個bug在Infinispan的可能原因包括:ISPN-4810