<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">That is strange since there is no correlation between eviction and the synchronicity of cache stores. &nbsp;Have you got a reproducible test for this?<div><br></div><div>Cheers</div><div>Manik</div><div><div><br><div><div>On 3 Feb 2010, at 18:37, Philippe Van Dyck wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks Manik,<div><br></div><div>I have a another problem with eviction, it seems to destroy cache entries, <i>only when I use async</i>.</div><div><br></div><div>Of course, all updates are transactional.</div><div><br></div>
<div>Where should I search for clues ? Any idea ?</div><div><br></div><div>Here is my config:</div><div><br></div><div><div>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</div><div><br></div><div>&lt;infinispan xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>xmlns="urn:infinispan:config:4.0"&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;global&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;transport</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport"&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;properties&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;property name="configurationFile" value="jgroups.xml" /&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;/properties&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;/transport&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/global&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;namedCache name="qi4j"&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;transaction</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup" /&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;clustering mode="distribution"&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;l1 enabled="true" lifespan="100000" /&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;hash numOwners="1" rehashRpcTimeout="120000" /&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;/clustering&gt;</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;loaders passivation="false" shared="true" preload="false"&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;loader class="org.infinispan.loaders.file.FileCacheStore"</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>fetchPersistentState="false" ignoreModifications="false"</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>purgeOnStartup="true"&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;properties&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>&lt;property name="location" value="/tmp" /&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;/properties&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;async enabled="true" threadPoolSize="3" /&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;/loader&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;/loaders&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;deadlockDetection enabled="true" spinDuration="1000"&gt;&lt;/deadlockDetection&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;eviction strategy="FIFO" wakeUpInterval="1000" maxEntries="10" /&gt;</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;unsafe unreliableReturnValues="true" /&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/namedCache&gt;</div>
<div>&lt;/infinispan&gt;</div><div><br></div></div><div><br></div><div>phil</div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Feb 3, 2010 at 6:42 PM, Manik Surtani <span dir="ltr">&lt;<a href="mailto:manik@jboss.org">manik@jboss.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">Ugh, good point. &nbsp;I thought the unit tests would have trapped a dumb-ass mistake like this.<div>
<br></div><div>The reason for transforming the name of the bucket is that we usually use hashcodes as the bucket name, which can take Integer.MIN_VALUE to Integer.MAX_VALUE. &nbsp;These are then translated into Strings, and this becomes the name of the storage unit, e.g., 12345.bucket in the FileCacheStore. &nbsp;Now filesystems are happy to accept a -12345.bucket but certain cloud storage providers barf when encountering the '-' character. &nbsp;Hence the transformation to A12345.bucket in some cases.</div>
<div><br></div><div>Cheers</div><div>Manik</div><div><br></div><div>PS: pushing up a new snapshot as I type, containing this fix + lower verbosity on eviction-related lock timeouts.</div><div><br><div><div><div></div><div class="h5">
<div>On 3 Feb 2010, at 17:16, Philippe Van Dyck wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">And BTW, why do it ?<div><br></div><div>p<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Philippe Van Dyck</b> <span dir="ltr">&lt;<a href="mailto:pvdyck@gmail.com" target="_blank">pvdyck@gmail.com</a>&gt;</span><br>
Date: Wed, Feb 3, 2010 at 6:15 PM<br>Subject: CloudCacheStore Bug<br>To: infinispan -Dev List &lt;<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a>&gt;<br><br><br>Hi all,<div>
<br></div><div>
there is a bug in CloudCacheStore that makes me feel like I am the only one using it ;-)</div><div><br></div><div>in CR4 : if you change the "-" sign to "A" in getBucketName ... you need to do the opposite somewhere (or call it every time) ;-)</div>


<div><br></div><div>WDYT ?</div><div><br></div><font color="#888888"><div>p</div>
</font></div><br></div></div></div>
_______________________________________________<br>infinispan-dev mailing list<div class="im"><br><a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br></div><a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote>
</div><br><font color="#888888"><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org" target="_blank">manik@jboss.org</a></div><div>Lead, Infinispan</div><div>Lead, JBoss Cache</div><div><a href="http://www.infinispan.org/" target="_blank">http://www.infinispan.org</a></div>
<div><a href="http://www.jbosscache.org/" target="_blank">http://www.jbosscache.org</a></div><div><br></div></div></span><br></span><br>
</div>
<br></font></div></div><br>_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br></blockquote></div><br></div>
_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div>Lead, Infinispan</div><div>Lead, JBoss Cache</div><div><a href="http://www.infinispan.org">http://www.infinispan.org</a></div><div><a href="http://www.jbosscache.org">http://www.jbosscache.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>