@cadenza.io/service 2.21.2 → 2.21.3
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/dist/browser/index.js +16 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +16 -0
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.mjs
CHANGED
|
@@ -4652,6 +4652,7 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
4652
4652
|
const signalName = String(
|
|
4653
4653
|
ctx.__signalName ?? ctx.__signalEmission?.fullSignalName ?? ""
|
|
4654
4654
|
).trim();
|
|
4655
|
+
const isRuntimeStatusUnreachableSignal = signalName === "meta.service_registry.runtime_status_unreachable" || signalName.startsWith("meta.service_registry.runtime_status_unreachable.");
|
|
4655
4656
|
const isFetchHandshakeFailure = signalName === "meta.fetch.handshake_failed" || signalName.startsWith("meta.fetch.handshake_failed:");
|
|
4656
4657
|
const hardFetchHandshakeFailure = isFetchHandshakeFailure && isHardFetchHandshakeFailure(ctx);
|
|
4657
4658
|
const recoverableFetchHandshakeFailure = isFetchHandshakeFailure && isRecoverableFetchTransportFailure(ctx, {
|
|
@@ -4663,9 +4664,18 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
4663
4664
|
if (isFetchDelegateFailure && !hardFetchDelegateFailure) {
|
|
4664
4665
|
return false;
|
|
4665
4666
|
}
|
|
4667
|
+
if (serviceName === "CadenzaDB") {
|
|
4668
|
+
if (!this.authorityBootstrapRecoveryActive) {
|
|
4669
|
+
this.restartAuthorityBootstrapRecovery("cadenza_db_unreachable");
|
|
4670
|
+
}
|
|
4671
|
+
return false;
|
|
4672
|
+
}
|
|
4666
4673
|
if (serviceName === "CadenzaDB" && (isFetchHandshakeFailure && recoverableFetchHandshakeFailure || isFetchDelegateFailure && recoverableFetchDelegateFailure)) {
|
|
4667
4674
|
return false;
|
|
4668
4675
|
}
|
|
4676
|
+
if (serviceName === "CadenzaDB" && isRuntimeStatusUnreachableSignal) {
|
|
4677
|
+
return false;
|
|
4678
|
+
}
|
|
4669
4679
|
if (serviceName === "CadenzaDB" && this.authorityBootstrapRecoveryActive) {
|
|
4670
4680
|
return false;
|
|
4671
4681
|
}
|
|
@@ -6122,6 +6132,9 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
6122
6132
|
if (!instance || !instance.isActive || instance.isBlocked) {
|
|
6123
6133
|
continue;
|
|
6124
6134
|
}
|
|
6135
|
+
if (instance.serviceName === "CadenzaDB") {
|
|
6136
|
+
continue;
|
|
6137
|
+
}
|
|
6125
6138
|
if (this.hasReadyClientTransportForProtocol(instance, "socket")) {
|
|
6126
6139
|
this.lastHeartbeatAtByInstance.set(serviceInstanceId, now);
|
|
6127
6140
|
this.missedHeartbeatsByInstance.set(serviceInstanceId, 0);
|
|
@@ -10810,6 +10823,9 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
10810
10823
|
if (!instance.isActive || instance.isBlocked) {
|
|
10811
10824
|
return false;
|
|
10812
10825
|
}
|
|
10826
|
+
if (instance.serviceName === "CadenzaDB") {
|
|
10827
|
+
return false;
|
|
10828
|
+
}
|
|
10813
10829
|
if (this.hasReadyClientTransportForProtocol(instance, "socket")) {
|
|
10814
10830
|
return false;
|
|
10815
10831
|
}
|