Navigation Menu

Skip to content

Commit

Permalink
Join the new node to the cluster before absorb
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 15, 2015
1 parent 155e404 commit 67b39dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/droonga-engine-join
Expand Up @@ -43,11 +43,11 @@ class JoinCommand
puts ""

set_node_role
update_existing_nodes
do_join
sleep(5) #TODO: wait for restarting of the joining node. this should be done more safely.
monitor_copying_state unless @options["no-copy"]
set_effective_message_timestamp
update_other_nodes
reset_node_role
puts("Done.")
exit(true)
Expand Down Expand Up @@ -219,7 +219,7 @@ class JoinCommand
end
end

def update_other_nodes
def update_existing_nodes
puts("Update existing hosts in the cluster...")
run_remote_command(source_node, "add_replicas",
"cluster_id" => source_cluster_id,
Expand Down

0 comments on commit 67b39dd

Please sign in to comment.