akka/akka — pull request #2019 by patriknw (2014-02-19 07:15:53+00:00)
Title: =con #3880 Keep track of all shards per region in ClusterSharding

* The problem was that ShardRegion actor only kept track of one shard
id per region actor. Therefore the Terminated message only removes
one of the shards from its registry when there are multiple shards
per region.
* Added failing test and solved the problem by keeping track of all
shards per region
* Also, rebalance must not be done before any regions have been
registered

Yeah, a bi-map would be great!