Skip to content

Commit

Permalink
Post-2.0 merge cleanup after review of changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Rohrer committed Dec 19, 2014
1 parent 2396709 commit 06a20ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/ring-resizing.md
Expand Up @@ -243,12 +243,16 @@ isn't implicitly enlarged during the transition, it is not used during expansion
One other minor change made to the vnode interface, regardless of
whether or not resizing is being used, is the first argument
of `handoff_starting/2` is now passed as `{HOType, {Idx, Node}}`.
`HOType` is one of `ownership`, `hinted`, `resize`, or `repair`.
`HOType` is one of `ownership`, `hinted`, or `resize`.
The `Idx` being transferred to is always the index
of the current partition, except in the case of `resize`.
`Node` is the node being transferred to (this used to be the argument
passed into `handoff_starting/2`).

Note: `HOType` is of type `riak_core_handoff_manager:ho_type()`, which includes
`repair`, but since repairs are started through a different code path it will
never be passed to `handoff_starting/2`.

### Cleaning Up

To ensure data is not lost in the case the operation fails or is
Expand Down
2 changes: 1 addition & 1 deletion src/riak_core_vnode_manager.erl
Expand Up @@ -715,7 +715,7 @@ update_handoff(AllVNodes, Ring, CHBin, State) ->
false ->
[];
{true, primary, TargetNode} ->
[{{Mod, Idx}, {ownership_handoff, outbound, TargetNode}}];
[{{Mod, Idx}, {ownership, outbound, TargetNode}}];
{true, {fallback, _Node}, TargetNode} ->
[{{Mod, Idx}, {hinted, outbound, TargetNode}}];
{true, '$resize'=Action} ->
Expand Down

5 comments on commit 06a20ad

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from andrewjstone
at 06a20ad

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging basho/riak_core/integration/riak-admin-handoff-team = 06a20ad into borshop-integration-678-integration/riak-admin-handoff-team

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basho/riak_core/integration/riak-admin-handoff-team = 06a20ad merged ok, testing candidate = 7a93a51

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding 2.0 to borshop-integration-678-integration/riak-admin-handoff-team = 7a93a51

Please sign in to comment.