tag:blogger.com,1999:blog-4420251135122552368.post4522319680688779757..comments2023-09-04T03:43:09.277-07:00Comments on ScaleAholic: A Couple Minutes With Non-Stop EhcacheSteve Harrishttp://www.blogger.com/profile/17342689039838434111noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4420251135122552368.post-55678465543687090022010-05-30T12:37:03.038-07:002010-05-30T12:37:03.038-07:00Hi Steve,Thanks for the example but the ehcachenon...Hi Steve,<br><br>Thanks for the example but the ehcachenonstop.xml isnt correct.<br><br>I fixed the upper case issues and closed the open XML tags (XML didn't validate).<br><br>Aside from this it works.<br>Below the fixed version.<br><br>Cheers Matthias<br><br>--- fixed ehcachenonstop.xml ---Matthias Matookhttp://www.blogger.com/profile/04504955381808745914noreply@blogger.comtag:blogger.com,1999:blog-4420251135122552368.post-54279288361200385522010-05-30T17:51:37.683-07:002010-05-30T17:51:37.683-07:00Thanks! I copy pasted the file from what I was doi...Thanks!<br><br> I copy pasted the file from what I was doing but maybe something is messed up? Can you e-mail me your changes so I can compare. My e-mail address is just steve at the company I work at.Steve Harrishttp://www.blogger.com/profile/17342689039838434111noreply@blogger.comtag:blogger.com,1999:blog-4420251135122552368.post-22115802939763488712010-12-16T17:18:30.789-08:002010-12-16T17:18:30.789-08:00Thanks for the blog.From article,"You'll ...Thanks for the blog.<br><br>From article,<br>"You'll notice this little sample flies through despite the timeout being set to 13 seconds. This is because it's in fail fast mode. "<br><br>How do I set up "fail fast mode"?<br><br>Thanks, gAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4420251135122552368.post-80480509763687071372010-12-17T07:10:24.131-08:002010-12-17T07:10:24.131-08:00I believe setting "immediateTimeout = true&qu...I believe setting "immediateTimeout = true" on the NonStopCache decorator should do the trickSteve Harrishttp://www.blogger.com/profile/17342689039838434111noreply@blogger.comtag:blogger.com,1999:blog-4420251135122552368.post-71895153719051775022010-12-17T18:49:39.249-08:002010-12-17T18:49:39.249-08:00Thanks Steve.Also, do you know why when I call get...Thanks Steve.<br><br>Also, do you know why when I call get() below without stopping the server and I only have this one thread calling the get() and no other threads,<br><br>BlockingCache blockingCache = <br>new BlockingCache(exceptionCache);<br><br>blockingCache.get("aRandomString");<br><br>that it gives this:<br>net.sf.ehcache.constructs.nonstop.NonStopCacheException: getQuite for key - 'czDVZVm1QjCXsdZSvbYlmA99' timed out<br> at net.sf.ehcache.constructs.nonstop.behavior.ExceptionOnTimeoutBehavior.getQuiet(ExceptionOnTimeoutBehavior.java:69)<br> at net.sf.ehcache.constructs.nonstop.behavior.ExecutorBehavior.getQuiet(ExecutorBehavior.java:119)<br> at net.sf.ehcache.constructs.nonstop.NonStopCache.getQuiet(NonStopCache.java:249)<br> at net.sf.ehcache.constructs.blocking.BlockingCache.get(BlockingCache.java:136)<br> at net.sf.ehcache.constructs.blocking.BlockingCache.get(BlockingCache.java:231)<br> at com.barra.cp.bol.cache.NonStopCacheTest.testNonStopCache(NonStopCacheTest.java:84)<br><br>I thought I would expect it to return null as value is not in the cache and server was not stopped.<br><br>Thanks, -gAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4420251135122552368.post-46416492112671570032010-12-19T19:25:44.524-08:002010-12-19T19:25:44.524-08:00I don't think blocking cache really works so w...I don't think blocking cache really works so well with nonstop cache right now. You can work around this with explicit locking and try finally.Steve Harrishttp://www.blogger.com/profile/17342689039838434111noreply@blogger.com