[jboss-dev-forums] [Design of JBossCache] - Re: Amazon S3 cache loader

manik.surtani@jboss.com do-not-reply at jboss.com
Thu Feb 7 09:03:24 EST 2008


"genman" wrote : I figured out how to optimize it, though there are race conditions when sharing caches, but the whole thing is full of potential race conditions. :-)
  | 

You could mitigate some race conditions by using the StripedLock class in the cache loader, but this will only prevent races on the cache loader on a single instance.  In a cluster, we'd need some sort of distributed locking to do this - either that, or for S3 to support transactions.  :-)

"genman" wrote : 
  | By the way, to test the darn thing, you have to have an Amazon S3 account.
  | 

Hmm, a good reason then to have the tests disabled by default for automated test runs, etc.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127389#4127389

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127389



More information about the jboss-dev-forums mailing list