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=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div><br></div><div>&lt;infinispan xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>xmlns=&quot;urn:infinispan:config:4.0&quot;&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=&quot;org.infinispan.remoting.transport.jgroups.JGroupsTransport&quot;&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=&quot;configurationFile&quot; value=&quot;jgroups.xml&quot; /&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=&quot;qi4j&quot;&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=&quot;org.infinispan.transaction.lookup.DummyTransactionManagerLookup&quot; /&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;clustering mode=&quot;distribution&quot;&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;l1 enabled=&quot;true&quot; lifespan=&quot;100000&quot; /&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;hash numOwners=&quot;1&quot; rehashRpcTimeout=&quot;120000&quot; /&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=&quot;false&quot; shared=&quot;true&quot; preload=&quot;false&quot;&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;loader class=&quot;org.infinispan.loaders.file.FileCacheStore&quot;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>fetchPersistentState=&quot;false&quot; ignoreModifications=&quot;false&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>purgeOnStartup=&quot;true&quot;&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=&quot;location&quot; value=&quot;/tmp&quot; /&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=&quot;true&quot; threadPoolSize=&quot;3&quot; /&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=&quot;true&quot; spinDuration=&quot;1000&quot;&gt;&lt;/deadlockDetection&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;eviction strategy=&quot;FIFO&quot; wakeUpInterval=&quot;1000&quot; maxEntries=&quot;10&quot; /&gt;</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;unsafe unreliableReturnValues=&quot;true&quot; /&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.  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.  These are then translated into Strings, and this becomes the name of the storage unit, e.g., 12345.bucket in the FileCacheStore.  Now filesystems are happy to accept a -12345.bucket but certain cloud storage providers barf when encountering the &#39;-&#39; character.  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 &quot;-&quot; sign to &quot;A&quot; 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>