Navigation Menu

Skip to content

Commit

Permalink
Report error when Serf command failed
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 15, 2015
1 parent deeedd3 commit 35bddb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/droonga-engine-absorb-data
Expand Up @@ -234,6 +234,11 @@ module Droonga
response = run_remote_command(source_node.to_s, "report_metadata",
"node" => source_node.to_s,
"key" => "last_processed_message_timestamp")
unless response
$stderr.puts("Could't get the time stamp of " +
"the last processed message from the source node.")
return false
end
timestamp = response["value"]
if timestamp and not timestamp.empty?
puts "The timestamp of the last processed message in the source node: #{timestamp}"
Expand Down
5 changes: 5 additions & 0 deletions bin/droonga-engine-join
Expand Up @@ -278,6 +278,11 @@ module Droonga
response = run_remote_command(source_node.to_s, "report_metadata",
"node" => source_node.to_s,
"key" => "last_processed_message_timestamp")
unless response
$stderr.puts("Could't get the time stamp of " +
"the last processed message from the source node.")
return false
end
timestamp = response["value"]
if timestamp and not timestamp.empty?
puts "The timestamp of the last processed message in the source node: #{timestamp}"
Expand Down

0 comments on commit 35bddb5

Please sign in to comment.