[Groonga-commit] droonga/droonga-engine at 35bddb5 [master] Report error when Serf command failed

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 15 20:18:26 JST 2015


YUKI Hiroshi	2015-04-15 20:18:26 +0900 (Wed, 15 Apr 2015)

  New Revision: 35bddb5581a7c5c2f50bb7cc71dad94728eb0942
  https://github.com/droonga/droonga-engine/commit/35bddb5581a7c5c2f50bb7cc71dad94728eb0942

  Message:
    Report error when Serf command failed

  Modified files:
    bin/droonga-engine-absorb-data
    bin/droonga-engine-join

  Modified: bin/droonga-engine-absorb-data (+5 -0)
===================================================================
--- bin/droonga-engine-absorb-data    2015-04-15 19:09:28 +0900 (eabc666)
+++ bin/droonga-engine-absorb-data    2015-04-15 20:18:26 +0900 (bb0268e)
@@ -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}"

  Modified: bin/droonga-engine-join (+5 -0)
===================================================================
--- bin/droonga-engine-join    2015-04-15 19:09:28 +0900 (7ef7cd7)
+++ bin/droonga-engine-join    2015-04-15 20:18:26 +0900 (2ffcf74)
@@ -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}"
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index