kuzzle 2.29.0-beta.1 → 2.29.0
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.
package/README.md
CHANGED
|
@@ -138,15 +138,3 @@ Check our [contributing documentation](./CONTRIBUTING.md) to know about our codi
|
|
|
138
138
|
## License
|
|
139
139
|
|
|
140
140
|
Kuzzle is published under [Apache 2 License](./LICENSE.md).
|
|
141
|
-
|
|
142
|
-
## About Mac M1
|
|
143
|
-
|
|
144
|
-
First of all make sure that you have at least `4GB` of ram allocated to your vm **docker desktop** and that it is running.
|
|
145
|
-
|
|
146
|
-
Run the following command to install all the dependencies in your container:
|
|
147
|
-
```bash
|
|
148
|
-
docker compose run kuzzle_node_1 npm ci
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
Finally, run the command `docker compose up` to start your Kuzzle stack.
|
|
152
|
-
|
package/lib/cluster/node.js
CHANGED
|
@@ -317,8 +317,6 @@ class ClusterNode {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
this.publisher.sendNodeEvicted(this.nodeId, this.nodeId, reason);
|
|
320
|
-
|
|
321
|
-
this.shutdownNode();
|
|
322
320
|
}
|
|
323
321
|
|
|
324
322
|
/**
|
|
@@ -341,6 +339,7 @@ class ClusterNode {
|
|
|
341
339
|
global.kuzzle.log.warn(
|
|
342
340
|
`[CLUSTER] Node "${nodeId}" evicted. Reason: ${reason}`,
|
|
343
341
|
);
|
|
342
|
+
|
|
344
343
|
this.trackActivity(
|
|
345
344
|
nodeId,
|
|
346
345
|
subscriber.remoteNodeIP,
|
|
@@ -365,8 +364,6 @@ class ClusterNode {
|
|
|
365
364
|
}, active: ${this.countActiveNodes()}). Deactivating node until new ones are added.`,
|
|
366
365
|
);
|
|
367
366
|
}
|
|
368
|
-
|
|
369
|
-
this.enforceClusterConsistency();
|
|
370
367
|
}
|
|
371
368
|
|
|
372
369
|
/**
|
|
@@ -477,7 +474,7 @@ class ClusterNode {
|
|
|
477
474
|
global.kuzzle.log.error(
|
|
478
475
|
"[CLUSTER] Network split detected. This node is outside the cluster: shutting down.",
|
|
479
476
|
);
|
|
480
|
-
|
|
477
|
+
global.kuzzle.shutdown();
|
|
481
478
|
return;
|
|
482
479
|
}
|
|
483
480
|
} catch (err) {
|
|
@@ -485,7 +482,7 @@ class ClusterNode {
|
|
|
485
482
|
"[CLUSTER] Unexpected exception caught during a cluster consistency check. Shutting down...",
|
|
486
483
|
);
|
|
487
484
|
global.kuzzle.log.error(err.stack);
|
|
488
|
-
|
|
485
|
+
global.kuzzle.shutdown();
|
|
489
486
|
}
|
|
490
487
|
}
|
|
491
488
|
|
|
@@ -501,7 +498,7 @@ class ClusterNode {
|
|
|
501
498
|
global.kuzzle.log.error(
|
|
502
499
|
`[CLUSTER] Failed to join the cluster: timed out (joinTimeout: ${this.config.joinTimeout}ms)`,
|
|
503
500
|
);
|
|
504
|
-
|
|
501
|
+
global.kuzzle.shutdown();
|
|
505
502
|
}, this.config.joinTimeout);
|
|
506
503
|
|
|
507
504
|
const mutex = new Mutex("clusterHandshake", {
|
|
@@ -544,7 +541,7 @@ class ClusterNode {
|
|
|
544
541
|
global.kuzzle.log.error(
|
|
545
542
|
`[CLUSTER] Another node share the same IP address as this one (${this.ip}): ${duplicate[0].id}. Shutting down.`,
|
|
546
543
|
);
|
|
547
|
-
|
|
544
|
+
global.kuzzle.shutdown();
|
|
548
545
|
return;
|
|
549
546
|
}
|
|
550
547
|
|
|
@@ -568,7 +565,7 @@ class ClusterNode {
|
|
|
568
565
|
global.kuzzle.log.error(
|
|
569
566
|
"[CLUSTER] Could not connect to discovered cluster nodes (network split detected). Shutting down.",
|
|
570
567
|
);
|
|
571
|
-
|
|
568
|
+
global.kuzzle.shutdown();
|
|
572
569
|
return;
|
|
573
570
|
}
|
|
574
571
|
|
|
@@ -1202,11 +1199,6 @@ class ClusterNode {
|
|
|
1202
1199
|
async countRealtimeSubscribers(roomId) {
|
|
1203
1200
|
return this.fullState.countRealtimeSubscriptions(roomId);
|
|
1204
1201
|
}
|
|
1205
|
-
|
|
1206
|
-
shutdownNode() {
|
|
1207
|
-
global.kuzzle.log.error(JSON.stringify(this.fullState.serialize()));
|
|
1208
|
-
global.kuzzle.shutdown();
|
|
1209
|
-
}
|
|
1210
1202
|
}
|
|
1211
1203
|
|
|
1212
1204
|
module.exports = ClusterNode;
|
|
@@ -57,7 +57,11 @@ class AbstractManifest {
|
|
|
57
57
|
|
|
58
58
|
this.kuzzleVersion = this.raw.kuzzleVersion;
|
|
59
59
|
|
|
60
|
-
if (
|
|
60
|
+
if (
|
|
61
|
+
!semver.satisfies(global.kuzzle.config.version, this.kuzzleVersion, {
|
|
62
|
+
includePrerelease: true,
|
|
63
|
+
})
|
|
64
|
+
) {
|
|
61
65
|
throw kerror.get(
|
|
62
66
|
"version_mismatch",
|
|
63
67
|
this.path,
|
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.29.0
|
|
4
|
+
"version": "2.29.0",
|
|
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": {
|