Skip to content

Commit a255cc1

Browse files
author
Brett Hazen
committed
Add debugging to rt:do_commit/1 to track nothing_planned
1 parent 6f0e534 commit a255cc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rt.erl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ staged_join(Node, PNode) ->
449449

450450
plan_and_commit(Node) ->
451451
timer:sleep(500),
452-
lager:info("planning and commiting cluster join"),
452+
lager:info("planning cluster join"),
453453
case rpc:call(Node, riak_core_claimant, plan, []) of
454454
{error, ring_not_ready} ->
455455
lager:info("plan: ring not ready"),
@@ -461,6 +461,7 @@ plan_and_commit(Node) ->
461461
end.
462462

463463
do_commit(Node) ->
464+
lager:info("planning cluster commit"),
464465
case rpc:call(Node, riak_core_claimant, commit, []) of
465466
{error, plan_changed} ->
466467
lager:info("commit: plan changed"),
@@ -472,8 +473,9 @@ do_commit(Node) ->
472473
timer:sleep(100),
473474
maybe_wait_for_changes(Node),
474475
do_commit(Node);
475-
{error,nothing_planned} ->
476+
{error, nothing_planned} ->
476477
%% Assume plan actually committed somehow
478+
lager:info("commit: nothing planned"),
477479
ok;
478480
ok ->
479481
ok

0 commit comments

Comments
 (0)