basho/riak_core — pull request #136 by jtuple (2012-01-10 17:30:42+00:00)
Title: Change node to use claim_v1 when in legacy mode

The new `claim_v2` algorithms introduced as default for 1.0.3 make assumptions about the ring that do not hold for legacy rings. The claim function may therefore crash, preventing a node from joining a cluster. Therefore, change `default_claim` to use `claim_v1` when given a legacy ring.

This ensure that a cluster can properly perform a rolling upgrade from 0.14.2 to 1.0.3. With this change, the old claim algorithm is still used during the upgrade, and then the new algorithm is used after all nodes have been upgraded to 1.0.3. Fixes observed basho_expect rolling upgrade failure.