@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.js
CHANGED
|
@@ -4742,6 +4742,7 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
4742
4742
|
const signalName = String(
|
|
4743
4743
|
ctx.__signalName ?? ctx.__signalEmission?.fullSignalName ?? ""
|
|
4744
4744
|
).trim();
|
|
4745
|
+
const isRuntimeStatusUnreachableSignal = signalName === "meta.service_registry.runtime_status_unreachable" || signalName.startsWith("meta.service_registry.runtime_status_unreachable.");
|
|
4745
4746
|
const isFetchHandshakeFailure = signalName === "meta.fetch.handshake_failed" || signalName.startsWith("meta.fetch.handshake_failed:");
|
|
4746
4747
|
const hardFetchHandshakeFailure = isFetchHandshakeFailure && isHardFetchHandshakeFailure(ctx);
|
|
4747
4748
|
const recoverableFetchHandshakeFailure = isFetchHandshakeFailure && isRecoverableFetchTransportFailure(ctx, {
|
|
@@ -4753,9 +4754,18 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
4753
4754
|
if (isFetchDelegateFailure && !hardFetchDelegateFailure) {
|
|
4754
4755
|
return false;
|
|
4755
4756
|
}
|
|
4757
|
+
if (serviceName === "CadenzaDB") {
|
|
4758
|
+
if (!this.authorityBootstrapRecoveryActive) {
|
|
4759
|
+
this.restartAuthorityBootstrapRecovery("cadenza_db_unreachable");
|
|
4760
|
+
}
|
|
4761
|
+
return false;
|
|
4762
|
+
}
|
|
4756
4763
|
if (serviceName === "CadenzaDB" && (isFetchHandshakeFailure && recoverableFetchHandshakeFailure || isFetchDelegateFailure && recoverableFetchDelegateFailure)) {
|
|
4757
4764
|
return false;
|
|
4758
4765
|
}
|
|
4766
|
+
if (serviceName === "CadenzaDB" && isRuntimeStatusUnreachableSignal) {
|
|
4767
|
+
return false;
|
|
4768
|
+
}
|
|
4759
4769
|
if (serviceName === "CadenzaDB" && this.authorityBootstrapRecoveryActive) {
|
|
4760
4770
|
return false;
|
|
4761
4771
|
}
|
|
@@ -6212,6 +6222,9 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
6212
6222
|
if (!instance || !instance.isActive || instance.isBlocked) {
|
|
6213
6223
|
continue;
|
|
6214
6224
|
}
|
|
6225
|
+
if (instance.serviceName === "CadenzaDB") {
|
|
6226
|
+
continue;
|
|
6227
|
+
}
|
|
6215
6228
|
if (this.hasReadyClientTransportForProtocol(instance, "socket")) {
|
|
6216
6229
|
this.lastHeartbeatAtByInstance.set(serviceInstanceId, now);
|
|
6217
6230
|
this.missedHeartbeatsByInstance.set(serviceInstanceId, 0);
|
|
@@ -10900,6 +10913,9 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
10900
10913
|
if (!instance.isActive || instance.isBlocked) {
|
|
10901
10914
|
return false;
|
|
10902
10915
|
}
|
|
10916
|
+
if (instance.serviceName === "CadenzaDB") {
|
|
10917
|
+
return false;
|
|
10918
|
+
}
|
|
10903
10919
|
if (this.hasReadyClientTransportForProtocol(instance, "socket")) {
|
|
10904
10920
|
return false;
|
|
10905
10921
|
}
|