infinispan/infinispan — pull request #731 by danberindei (2011-12-16 10:04:40+00:00)
Title: ISPN-1606 - Data inconsistencies when a cache view installation is rolled back

https://issues.jboss.org/browse/ISPN-1606
Block new transactions the moment we see a leaver or on cache view prepare, unblock only on cache view commit.
Throw an exception if we get a cache view prepare after we stopped the cache.

We also need to fail a prepare if the response is null. It happened once in the test suite, and there was no exception to check either.

I included a commit for ISPN-1603 as well: https://issues.jboss.org/browse/ISPN-1603
Set viewTriggerThread's context classloader to the cache manager's classloader and never set it to null.