[Groonga-commit] droonga/droonga-engine at b5d4f03 [master] Wait until the publisher is ready

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jul 16 19:41:30 JST 2014


YUKI Hiroshi	2014-07-16 19:41:30 +0900 (Wed, 16 Jul 2014)

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

  Message:
    Wait until the publisher is ready

  Modified files:
    lib/droonga/command/serf_event_handler.rb

  Modified: lib/droonga/command/serf_event_handler.rb (+1 -0)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-07-16 19:40:47 +0900 (82a7539)
+++ lib/droonga/command/serf_event_handler.rb    2014-07-16 19:41:30 +0900 (d505ffe)
@@ -174,6 +174,7 @@ module Droonga
         Serf.send_query(source_node, "publish_catalog",
                         "node" => source_node,
                         "port" => port)
+        sleep(3) # wait until the HTTP server becomes ready
 
         url = "http://#{source_host}:#{port}/catalog.json"
         connection = Faraday.new(url) do |builder|
-------------- next part --------------
HTML����������������������������...
Download 



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