[Groonga-commit] droonga/express-droonga at 6649d90 [master] Report error while starting of Serf agent

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 5 16:07:41 JST 2014


YUKI Hiroshi	2014-11-05 16:07:41 +0900 (Wed, 05 Nov 2014)

  New Revision: 6649d90c50430884381d5322235c97eee693d4d5
  https://github.com/droonga/express-droonga/commit/6649d90c50430884381d5322235c97eee693d4d5

  Message:
    Report error while starting of Serf agent

  Modified files:
    lib/droonga-protocol/connection-pool.js

  Modified: lib/droonga-protocol/connection-pool.js (+8 -1)
===================================================================
--- lib/droonga-protocol/connection-pool.js    2014-11-05 15:41:33 +0900 (924b1d4)
+++ lib/droonga-protocol/connection-pool.js    2014-11-05 16:07:41 +0900 (51919dd)
@@ -187,7 +187,14 @@ ConnectionPool.prototype = {
       hostName:     this._params.receiveHostName,
       otherMembers: this.hostNames
     });
-    this._serf.start();
+    this._serf.start()
+      .then((function() {
+        this._logger.info('Start to watch changes in the cluster.');
+      }).bind(this))
+      .catch(function(error) {
+        this._logger.error('Failed to start watching of changes in the cluster.');
+        this._logger.error(error);
+      });
     this._serf.on('member-change', this.updateHostNamesFromCluster.bind(this));
     this._watching = true;
   },
-------------- next part --------------
HTML����������������������������...
下載 



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