infinispan/infinispan — pull request #1489 by anistor (2012-11-28 10:16:08+00:00)
Title: ISPN-2557 IllegalStateException "Segments [a,b, c] are not owned by Node...

...X" in StateProviderImpl

* In StateProviderImpl.getTransactionsForSegments() and StateProviderImpl.startOutboundTransfer() if requestTopologyId > topologyId we should wait for the topology AND refresh the CacheTopology object we are using. The latter part was missing.
* Extracted the code that checks current topology and waits for a higher topology if needed into a separate method

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