[Groonga-commit] droonga/express-droonga at f72ec89 [master] Close old connections when cluster structure is changed.

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 2 16:11:23 JST 2015


YUKI Hiroshi	2015-04-02 16:11:23 +0900 (Thu, 02 Apr 2015)

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

  Message:
    Close old connections when cluster structure is changed.

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

  Modified: lib/droonga-protocol/connection-pool.js (+3 -0)
===================================================================
--- lib/droonga-protocol/connection-pool.js    2015-04-01 15:53:31 +0900 (7e26c6e)
+++ lib/droonga-protocol/connection-pool.js    2015-04-02 16:11:23 +0900 (2d7d036)
@@ -202,6 +202,9 @@ ConnectionPool.prototype = {
                    var hostNames = engines.map(function(engine) {
                      return engine.HostName;
                    });
+                   // Close all existing connections to droonga-engine nodes.
+                   // Otherwise, old droonga-engine processes become zombie.
+                   this.closeAll();
                    this.hostNames = hostNames;
                    this._logger.info('List of droonga-engine hosts is successfully initialized from the cluster.');
                    this._logger.info('cluster id: '+this.clusterId);
-------------- next part --------------
HTML����������������������������...
Download 



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