infinispan/infinispan — pull request #1355 by anistor (2012-10-02 15:54:10+00:00)
Title: ISPN-2361 AbstractTxLockingInterceptor.lockKeyAndCheckOwnership() anomal...

...ies: can wait indefinitelly or it can wait too little due to spurious wakeups

* Extract the check for pending transactions from AbstractTxLockingInterceptor.lockKeyAndCheckOwnership() into a separate method that is called for both local and for remote transactions - this eliminates duplication.

* Execute AbstractCacheTransaction.waitForLockRelease() in a loop in order the cope with spurious wakeups.

* Change waiting time termination condition to avoid waiting with 0 timeout (indefinitelly).

* Add CacheTransaction.waitForLockRelease() javadoc documenting the spurious return issue.

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