kuzzle 2.27.3 → 2.27.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -316,7 +316,7 @@ class ClusterNode {
316
316
  global.kuzzle.log.error(error.stack);
317
317
  }
318
318
 
319
- await this.publisher.sendNodeEvicted(this.nodeId, this.nodeId, reason);
319
+ this.publisher.sendNodeEvicted(this.nodeId, this.nodeId, reason);
320
320
 
321
321
  this.shutdownNode();
322
322
  }
@@ -332,6 +332,9 @@ class ClusterNode {
332
332
  const subscriber = this.remoteNodes.get(nodeId);
333
333
 
334
334
  if (!subscriber) {
335
+ global.kuzzle.log.warn(
336
+ `[CLUSTER] Node "${nodeId}" with no subscriber evicted. Reason: ${reason}`,
337
+ );
335
338
  return;
336
339
  }
337
340
 
@@ -351,7 +354,7 @@ class ClusterNode {
351
354
  subscriber.dispose();
352
355
 
353
356
  if (broadcast) {
354
- await this.publisher.sendNodeEvicted(this.nodeId, nodeId, reason);
357
+ this.publisher.sendNodeEvicted(this.nodeId, nodeId, reason);
355
358
  }
356
359
 
357
360
  if (this.countActiveNodes() < this.config.minimumNodes) {
@@ -477,9 +480,6 @@ class ClusterNode {
477
480
  this.shutdownNode();
478
481
  return;
479
482
  }
480
-
481
- // Rerun the cluster consistency check
482
- await this.enforceClusterConsistency();
483
483
  } catch (err) {
484
484
  global.kuzzle.log.error(
485
485
  "[CLUSTER] Unexpected exception caught during a cluster consistency check. Shutting down...",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kuzzle",
3
3
  "author": "The Kuzzle Team <support@kuzzle.io>",
4
- "version": "2.27.3",
4
+ "version": "2.27.4",
5
5
  "description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
6
6
  "bin": "bin/start-kuzzle-server",
7
7
  "scripts": {