0 Replies Latest reply on Aug 12, 2013 1:25 AM by bingozzz bingozzz

    AbstractPerEntryLockContainer can not lock the same key that's bytes type

    bingozzz bingozzz Newbie

      the class AbstractPerEntryLockContainer of the Infinispan 5.3.0.final, its constructor:

       

         protected AbstractPerEntryLockContainer(int concurrencyLevel) {

            locks = new EquivalentConcurrentHashMapV8<Object, L>(

                  16, concurrencyLevel, AnyEquivalence.getInstance(), AnyEquivalence.<L>getInstance());

         }

       

      if used the hotrod client,the same key can not be lock correctly,because the AbstractPerEntryLockContainer's EquivalentConcurrentHashMapV8 think the same binary key values are different lock.

       

      Where can I configure it,like the dataContainer?


      dataContainer:  keyEquivalence="org.infinispan.commons.equivalence.ByteArrayEquivalence"

                              valueEquivalence="org.infinispan.commons.equivalence.ByteArrayEquivalence"