Error: "AsyncCacheWriter is dead!"
jugglingcats Feb 17, 2014 3:03 AMHi, I've started load testing our app and after some time I'm seeing entries like the following in the log:
17-02-2014 06:28:04,859 ERROR [AsyncStoreCoordinator-sessions] org.infinispan.persistence.async.AsyncCacheWriter - ISPN000055: Unexpected error in AsyncStoreCoordinator thread. AsyncCacheWriter is dead!
org.infinispan.util.concurrent.TimeoutException: ISPN000233: Waiting on work threads latch failed: java.util.concurrent.CountDownLatch@6909506a[Count = 5]
at org.infinispan.persistence.async.AsyncCacheWriter$AsyncStoreCoordinator.workerThreadsAwait(AsyncCacheWriter.java:297)
at org.infinispan.persistence.async.AsyncCacheWriter$AsyncStoreCoordinator.run(AsyncCacheWriter.java:254)
at java.lang.Thread.run(Thread.java:662)
// more entries, about one every 10-20 seconds
17-02-2014 07:42:57,724 ERROR [AsyncStoreCoordinator-audit] org.infinispan.persistence.async.AsyncCacheWriter - ISPN000055: Unexpected error in AsyncStoreCoordinator thread. AsyncCacheWriter is dead!
org.infinispan.util.concurrent.TimeoutException: ISPN000233: Waiting on work threads latch failed: java.util.concurrent.CountDownLatch@620ee765[Count = 25]
at org.infinispan.persistence.async.AsyncCacheWriter$AsyncStoreCoordinator.workerThreadsAwait(AsyncCacheWriter.java:297)
at org.infinispan.persistence.async.AsyncCacheWriter$AsyncStoreCoordinator.run(AsyncCacheWriter.java:254)
at java.lang.Thread.run(Thread.java:662)
This happens for a couple of the most heavily used caches. All the later entries have Count=25.
The caches are configured with a long modification queue length (200,000 for one and 100,000 for another), with 25 service threads. Concurrency level is set at 300.
My app is also consuming all available heap over time which I'm digging into, but these errors start appearing when there is still a reasonable amount of free space.
Any ideas / advice on what to look for appreciated! I'm going to try reducing the queue length and easing off the load a little to see if it helps.
Many thanks, Alfie.