querysub 0.442.0 → 0.443.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/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { addEpsilons, minusEpsilon } from "../bits";
|
|
|
4
4
|
import { logErrors } from "../errors";
|
|
5
5
|
import { appendToPathStr, getParentPathStr, getPathDepth, getPathIndexAssert, hack_getPackedPathSuffix, hack_setPackedPathSuffix, hack_stripPackedPath } from "../path";
|
|
6
6
|
import { measureFnc, measureWrap } from "socket-function/src/profiling/measure";
|
|
7
|
-
import { IdentityController_getOwnPubKeyShort } from "../-c-identity/IdentityController";
|
|
7
|
+
import { IdentityController_getOwnPubKeyShort, debugNodeId, debugNodeThread } from "../-c-identity/IdentityController";
|
|
8
8
|
import { pathValueArchives } from "./pathValueArchives";
|
|
9
9
|
import { blue } from "socket-function/src/formatting/logColors";
|
|
10
10
|
import { delay, runInfinitePoll } from "socket-function/src/batching";
|
|
@@ -694,6 +694,10 @@ class AuthorityPathValueStorage {
|
|
|
694
694
|
|
|
695
695
|
public addParentSyncs(parentSyncs: { parentPath: string; sourceNodeId: string }[]) {
|
|
696
696
|
for (let obj of parentSyncs) {
|
|
697
|
+
if (isDebugLogEnabled()) {
|
|
698
|
+
auditLog("RECEIVED PARENT PATH", { parentPath: obj.parentPath, remoteNodeId: debugNodeId(obj.sourceNodeId), remoteNodeThreadId: debugNodeThread(obj.sourceNodeId) });
|
|
699
|
+
}
|
|
700
|
+
|
|
697
701
|
let decoded = decodeParentFilter(obj.parentPath);
|
|
698
702
|
let range = decoded ? { start: decoded.start, end: decoded.end } : { start: 0, end: 1 };
|
|
699
703
|
let parentPath = hack_stripPackedPath(obj.parentPath);
|
|
@@ -453,7 +453,7 @@ export class PathFunctionRunner {
|
|
|
453
453
|
let fraction = getRoutingOverridePart(callPath.CallId)?.route;
|
|
454
454
|
if (fraction === undefined) {
|
|
455
455
|
fraction = PathRouter.getSingleKeyRoute(callPath.CallId);
|
|
456
|
-
console.error(`No routing override found for callId, falling back to direct hash`, { callId: callPath.CallId, fraction });
|
|
456
|
+
console.error(`No routing override found for callId, falling back to direct hash`, { callId: callPath.CallId, fraction, domainName: callPath.DomainName, moduleId: callPath.ModuleId, functionId: callPath.FunctionId, callerMachineId: callPath.callerMachineId, callerIP: callPath.callerIP });
|
|
457
457
|
}
|
|
458
458
|
// It isn't secondary if it is primary
|
|
459
459
|
if (shardRange.startFraction <= fraction && fraction < shardRange.endFraction) return 0;
|