2 Replies Latest reply on Jul 21, 2010 2:57 AM by galder.zamarreno

    AsyncStore can wait eternally while stopping

    garcimouche

      I refer to a previous discussion: http://community.jboss.org/thread/153961?tstart=0

       

      When the AsyncStore is stopped (from the main thread through a cacheManager.stop), the working async threads might not have finished their works. I'm using JDBC and the connection pooling that rely on c3p0 library. C3P0 catch the interrupt signal through an Object.wait() statement which has the effect of clearing the current thread interrupt status causing AsyncStore worker threads to wait eternally. I attach a patch that works perfectly for me.