Navigation Menu

Skip to content

Commit

Permalink
Make displayed messages more meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 23, 2015
1 parent 2faaf87 commit 9775902
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bin/droonga-engine-absorb-data
Expand Up @@ -245,7 +245,7 @@ module Droonga
timestamp = source_node_serf.latest_last_processed_message_timestamp
if timestamp and not timestamp.empty?
puts "The timestamp of the last processed message in the source node: #{timestamp}"
puts "Setting effective message timestamp for the destination node..."
puts "Setting the destination node to ignore messages older than the timestamp..."
destination_node_serf.ensure_restarted do
destination_node_serf.send_query("accept_messages_newer_than",
"node" => destination_node.to_s,
Expand All @@ -254,7 +254,7 @@ module Droonga
else
$stderr.puts("WARNING: Couldn't get the time stamp of " +
"the last processed message from the source node. " +
"Any message will be forwarded to the joining node.")
"Any message will be forwarded to the destination node.")
end
end

Expand Down
10 changes: 5 additions & 5 deletions bin/droonga-engine-join
Expand Up @@ -285,7 +285,7 @@ module Droonga
end

def do_join
puts("Joining new replica to the cluster...")
puts("Configuring the joining node as a new replica for the cluster...")
joining_node_serf.ensure_restarted do
joining_node_serf.send_query("join",
"node" => joining_node.to_s,
Expand Down Expand Up @@ -320,8 +320,8 @@ module Droonga
def update_accept_messages_newer_than_timestamp
timestamp = source_node_serf.latest_last_processed_message_timestamp
if timestamp and not timestamp.empty?
puts "The timestamp of the last processed message in the source node: #{timestamp}"
puts "Setting effective message timestamp for the destination node..."
puts "The timestamp of the last processed message at the source node: #{timestamp}"
puts "Setting new node to ignore messages older than the timestamp..."
joining_node_serf.ensure_restarted do
joining_node_serf.send_query("accept_messages_newer_than",
"node" => joining_node.to_s,
Expand All @@ -335,7 +335,7 @@ module Droonga
end

def register_to_existing_nodes
puts("Register new node to existing hosts in the cluster...")
puts("Registering new node to existing nodes...")
source_node_serf.ensure_restarted(*existing_nodes) do
source_node_serf.send_query("add_replicas",
"cluster_id" => source_cluster_id,
Expand All @@ -346,7 +346,7 @@ module Droonga
end

def unregister_from_existing_nodes
puts("Unregister new node from existing hosts in the cluster...")
puts("Unregistering new node from existing nodes...")
source_node_serf.ensure_restarted(*existing_nodes) do
source_node_serf.send_query("remove_replicas",
"cluster_id" => source_cluster_id,
Expand Down

0 comments on commit 9775902

Please sign in to comment.