infinispan/infinispan — pull request #1330 by anistor (2012-09-20 16:31:50+00:00)
Title: ISPN-2312  TransactionTable does not compute minViewId correctly after NBST was introduced 

This happens for transactions that arrive via state transfer. The view id of these transactions is currently wrong - it should be the view id in which they were created instead of the current view id at the time they were transferred.
AbstractTxLockingInterceptor.lockKeyAndCheckOwnership relies on this and consequently does not work correctly for transferred transactions.
Also TransactionTable listens for JGroup view changes instead of CacheTopology updates. This is another reason minViewId calculation is wrong.

Another aspect that needs to be considered is the topology id does not change if the update is not caused by a rebalance. In this case the topologyId comparison AbstractTxLockingInterceptor.lockKeyAndCheckOwnership must not be strict.

JIRA: https://issues.jboss.org/browse/ISPN-2312