infinispan/infinispan — pull request #1703 by anistor (2013-03-05 17:05:12+00:00)
Title: ISPN-2787 NPE after ReplaceCommand

* Add MergeDuringReplaceTest to reproduce the issue.
* Fix one of the ControlledRpcManager.invokeRemotely methods that was ignoring the actual result and was always returning null.
* Minor logging improvements to be able to debug this issue.
* Remove harmfull optimization from RpcManagerImpl.invokeRemotely(Collection

recipients, ReplicableCommand rpcCommand, ResponseMode mode, long timeout, boolean usePriorityQueue, ResponseFilter responseFilter) that was not going remotely and neither threw any exception if the destinations were no longer in cluster and current node was the only member.

Please integrate in master and 5.2.x (anistor/t_2787_52).

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