@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/index.js
CHANGED
|
@@ -7916,6 +7916,7 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
7916
7916
|
const signalName = String(
|
|
7917
7917
|
ctx.__signalName ?? ctx.__signalEmission?.fullSignalName ?? ""
|
|
7918
7918
|
).trim();
|
|
7919
|
+
const isRuntimeStatusUnreachableSignal = signalName === "meta.service_registry.runtime_status_unreachable" || signalName.startsWith("meta.service_registry.runtime_status_unreachable.");
|
|
7919
7920
|
const isFetchHandshakeFailure = signalName === "meta.fetch.handshake_failed" || signalName.startsWith("meta.fetch.handshake_failed:");
|
|
7920
7921
|
const hardFetchHandshakeFailure = isFetchHandshakeFailure && isHardFetchHandshakeFailure(ctx);
|
|
7921
7922
|
const recoverableFetchHandshakeFailure = isFetchHandshakeFailure && isRecoverableFetchTransportFailure(ctx, {
|
|
@@ -7927,9 +7928,18 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
7927
7928
|
if (isFetchDelegateFailure && !hardFetchDelegateFailure) {
|
|
7928
7929
|
return false;
|
|
7929
7930
|
}
|
|
7931
|
+
if (serviceName === "CadenzaDB") {
|
|
7932
|
+
if (!this.authorityBootstrapRecoveryActive) {
|
|
7933
|
+
this.restartAuthorityBootstrapRecovery("cadenza_db_unreachable");
|
|
7934
|
+
}
|
|
7935
|
+
return false;
|
|
7936
|
+
}
|
|
7930
7937
|
if (serviceName === "CadenzaDB" && (isFetchHandshakeFailure && recoverableFetchHandshakeFailure || isFetchDelegateFailure && recoverableFetchDelegateFailure)) {
|
|
7931
7938
|
return false;
|
|
7932
7939
|
}
|
|
7940
|
+
if (serviceName === "CadenzaDB" && isRuntimeStatusUnreachableSignal) {
|
|
7941
|
+
return false;
|
|
7942
|
+
}
|
|
7933
7943
|
if (serviceName === "CadenzaDB" && this.authorityBootstrapRecoveryActive) {
|
|
7934
7944
|
return false;
|
|
7935
7945
|
}
|
|
@@ -9386,6 +9396,9 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
9386
9396
|
if (!instance || !instance.isActive || instance.isBlocked) {
|
|
9387
9397
|
continue;
|
|
9388
9398
|
}
|
|
9399
|
+
if (instance.serviceName === "CadenzaDB") {
|
|
9400
|
+
continue;
|
|
9401
|
+
}
|
|
9389
9402
|
if (this.hasReadyClientTransportForProtocol(instance, "socket")) {
|
|
9390
9403
|
this.lastHeartbeatAtByInstance.set(serviceInstanceId, now);
|
|
9391
9404
|
this.missedHeartbeatsByInstance.set(serviceInstanceId, 0);
|
|
@@ -14074,6 +14087,9 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
14074
14087
|
if (!instance.isActive || instance.isBlocked) {
|
|
14075
14088
|
return false;
|
|
14076
14089
|
}
|
|
14090
|
+
if (instance.serviceName === "CadenzaDB") {
|
|
14091
|
+
return false;
|
|
14092
|
+
}
|
|
14077
14093
|
if (this.hasReadyClientTransportForProtocol(instance, "socket")) {
|
|
14078
14094
|
return false;
|
|
14079
14095
|
}
|