-
Enhancement
-
Resolution: Done
-
Major
-
7.0.0.Alpha3
-
None
Even after asymmetric cluster support was implemented, each node still does not know which other nodes contain which caches. The coordinator of the cluster knows, but no one else. This is because the aim has never really been to have different nodes containing different caches, but more about making sure that caches can be started lazily. With this in mind, the limitation in ISPN-833 will be reinstated.
Being able to work only with predefined caches also simplifies a solution for ISPN-3530 because we can safely assume that all servers contain the defined caches. Each cache might have a different consistent hash (see dev list discussion on why this can easily happen - http://lists.jboss.org/pipermail/infinispan-dev/2014-April/014870.html) but at least knowing that the nodes that have it is the same makes it easier to come up with a solution.
Finally, restoring the limitation avoids other can of worms such as the edge cases discovered by Jakub in ISPN-4212.
The limitation is restored successful only for REPL caches, as shown in ClientAsymmetricClusterTest
But for DIST caches, a nonexistent cache is started anyway in order to get hold of the ConsistentHash to write the topology update, as shown in Encoder2x
If in the test we change from REPL to DIST, it fails, not throwing CacheNotFoundException anymore.
Was this intentional? Shouldn't DIST behave the same way as REPL?