1 Reply Latest reply on Apr 12, 2011 11:49 AM by Mircea Markus

    Locking management in a multi-owner case

    Alain Brunet Newbie



      I am trying to find out how Infinispan is managing locking in a multi-owner scenario. We are getting loads of deadlock since we do a lot of writes per seconds to a given cache element. We can manage them with the deadlock detection but it does impact seriously the throughput even with low lock acquisition timeout values.


      I was expecting a locking scheme were a single lock per element, no matter how much copies exists on the cluster, would be aquired leaving room for locking all other copies on the cluster without risking a deadlock. However what I observed is each node locking a copy and deadlocking when locking the other copies on the cluster.


      Any explanation is welcome.