infinispan/infinispan — pull request #1742 by danberindei (2013-04-01 14:07:07+00:00)
Title: ISPN-2935, ISPN-2910, and ISPN-2966

https://issues.jboss.org/browse/ISPN-2935
https://issues.jboss.org/browse/ISPN-2910
https://issues.jboss.org/browse/ISPN-2966

Master only.

ISPN-2935 After view change single node is left in cluster, but still tries to invoke stuff remotely
* Make the view listener synchronous and move the processing to an async
transport thread.
* Synchronize the view handling on the coordinator.
* When recovering the cache status after becoming coordinator, remove cache
members that are no longer cluster members. (Even though the member will
be removed when the next view is handled.)

ISPN-2910 Divide by zero exception on shutdown
Skip topology update when a new node becomes coordinator and all the
members of a cache leave while the coordinator recovers the state.

ISPN-2966 NBST: Concurrent leavers can lead to deadlock
Make the CH_UPDATE and REBALANCE_START asynchronous (but keep them OOB).