<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ah, OK, it should really be disabled on Lucene caches:<div><br></div><div><div> <replicated-cache name="LuceneIndexesMetadata" mode="SYNC"></div><div> <transaction mode="NONE"/></div><div> <eviction strategy="NONE"/></div><div> <file-store preload="true" purge="false"/></div><div> </replicated-cache></div><div> <replicated-cache name="LuceneIndexesData" mode="SYNC"></div><div> <transaction mode="NONE"/></div><div> <eviction strategy="NONE"/></div><div> <file-store preload="true" purge="false"/></div><div> </replicated-cache></div><div> <replicated-cache name="LuceneIndexesLocking" mode="SYNC"></div><div> <transaction mode="NONE"/></div><div> <eviction strategy="NONE"/></div><div> <file-store preload="false" purge="true"/></div><div> </replicated-cache></div></div><div><br></div><div>Horrible err msg ...</div><div><br><div><div>On Nov 22, 2012, at 12:53 PM, Ales Justin <<a href="mailto:ales.justin@gmail.com">ales.justin@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I was changing cache config a bit, and got this:<div>* <a href="https://gist.github.com/4130728">https://gist.github.com/4130728</a></div><div><br></div><div><div> private static void verifyCacheHasNoEviction(AdvancedCache<?, ?> cache) {</div><div> if (cache.getConfiguration().getEvictionStrategy().isEnabled())</div><div> throw new IllegalArgumentException("DistributedSegmentReadLocker is not reliable when using a cache with eviction enabled, disable eviction on this cache instance");</div><div> }</div></div><div><br></div><div><br></div><div>How do you then handle memory overflow on no-eviction caches?</div><div><br></div><div><br></div><div>-Ales</div><div><br></div></div></blockquote></div><br></div></body></html>