@opendatalabs/personal-server-ts-core 1.43.0 → 1.43.2
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/api/owner-connector-delete.d.ts +20 -2
- package/dist/api/owner-connector-delete.d.ts.map +1 -1
- package/dist/api/owner-connector-delete.js +18 -6
- package/dist/api/owner-connector-delete.js.map +1 -1
- package/dist/localdb/apply.d.ts.map +1 -1
- package/dist/localdb/apply.js +25 -1
- package/dist/localdb/apply.js.map +1 -1
- package/dist/localdb/bootstrap.d.ts +7 -1
- package/dist/localdb/bootstrap.d.ts.map +1 -1
- package/dist/localdb/bootstrap.js +20 -6
- package/dist/localdb/bootstrap.js.map +1 -1
- package/dist/localdb/cycle.d.ts +33 -2
- package/dist/localdb/cycle.d.ts.map +1 -1
- package/dist/localdb/cycle.js +151 -21
- package/dist/localdb/cycle.js.map +1 -1
- package/dist/localdb/delete-status.d.ts +53 -0
- package/dist/localdb/delete-status.d.ts.map +1 -0
- package/dist/localdb/delete-status.js +19 -0
- package/dist/localdb/delete-status.js.map +1 -0
- package/dist/localdb/delete.d.ts +48 -2
- package/dist/localdb/delete.d.ts.map +1 -1
- package/dist/localdb/delete.js +508 -42
- package/dist/localdb/delete.js.map +1 -1
- package/dist/localdb/deps.d.ts +6 -0
- package/dist/localdb/deps.d.ts.map +1 -1
- package/dist/localdb/deps.js.map +1 -1
- package/dist/localdb/index.d.ts +3 -1
- package/dist/localdb/index.d.ts.map +1 -1
- package/dist/localdb/index.js +1 -0
- package/dist/localdb/index.js.map +1 -1
- package/dist/localdb/legacy-delete.d.ts +89 -0
- package/dist/localdb/legacy-delete.d.ts.map +1 -0
- package/dist/localdb/legacy-delete.js +279 -0
- package/dist/localdb/legacy-delete.js.map +1 -0
- package/dist/localdb/log-apply.d.ts.map +1 -1
- package/dist/localdb/log-apply.js +15 -5
- package/dist/localdb/log-apply.js.map +1 -1
- package/dist/localdb/log-bootstrap.d.ts.map +1 -1
- package/dist/localdb/log-bootstrap.js +9 -6
- package/dist/localdb/log-bootstrap.js.map +1 -1
- package/dist/localdb/log-erase.d.ts +55 -4
- package/dist/localdb/log-erase.d.ts.map +1 -1
- package/dist/localdb/log-erase.js +76 -8
- package/dist/localdb/log-erase.js.map +1 -1
- package/dist/localdb/partial-load.d.ts +7 -0
- package/dist/localdb/partial-load.d.ts.map +1 -1
- package/dist/localdb/partial-load.js +7 -0
- package/dist/localdb/partial-load.js.map +1 -1
- package/dist/localdb/purge.d.ts +42 -9
- package/dist/localdb/purge.d.ts.map +1 -1
- package/dist/localdb/purge.js +38 -4
- package/dist/localdb/purge.js.map +1 -1
- package/dist/localdb/schema.d.ts.map +1 -1
- package/dist/localdb/schema.js +39 -0
- package/dist/localdb/schema.js.map +1 -1
- package/dist/localdb/sync.d.ts +9 -1
- package/dist/localdb/sync.d.ts.map +1 -1
- package/dist/localdb/sync.js +32 -8
- package/dist/localdb/sync.js.map +1 -1
- package/dist/stream-sync/registry.d.ts.map +1 -1
- package/dist/stream-sync/registry.js +25 -0
- package/dist/stream-sync/registry.js.map +1 -1
- package/dist/sync/delete-data-port.d.ts +10 -0
- package/dist/sync/delete-data-port.d.ts.map +1 -1
- package/dist/sync/delete-data-port.js +70 -29
- package/dist/sync/delete-data-port.js.map +1 -1
- package/dist/sync/engine/sync-manager.d.ts +7 -2
- package/dist/sync/engine/sync-manager.d.ts.map +1 -1
- package/dist/sync/engine/sync-manager.js +6 -3
- package/dist/sync/engine/sync-manager.js.map +1 -1
- package/dist/sync/gateway-refusal.d.ts +36 -0
- package/dist/sync/gateway-refusal.d.ts.map +1 -0
- package/dist/sync/gateway-refusal.js +45 -0
- package/dist/sync/gateway-refusal.js.map +1 -0
- package/dist/sync/tombstone-resubmits.d.ts +3 -1
- package/dist/sync/tombstone-resubmits.d.ts.map +1 -1
- package/dist/sync/tombstone-resubmits.js.map +1 -1
- package/dist/sync/workers/delete.d.ts +6 -0
- package/dist/sync/workers/delete.d.ts.map +1 -1
- package/dist/sync/workers/delete.js +29 -30
- package/dist/sync/workers/delete.js.map +1 -1
- package/dist/test-utils/legacy-delete-ports.d.ts +24 -0
- package/dist/test-utils/legacy-delete-ports.d.ts.map +1 -0
- package/dist/test-utils/legacy-delete-ports.js +91 -0
- package/dist/test-utils/legacy-delete-ports.js.map +1 -0
- package/dist/test-utils/legacy-gateway-fake.d.ts +88 -0
- package/dist/test-utils/legacy-gateway-fake.d.ts.map +1 -0
- package/dist/test-utils/legacy-gateway-fake.js +243 -0
- package/dist/test-utils/legacy-gateway-fake.js.map +1 -0
- package/dist-test/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/localdb/cycle.js
CHANGED
|
@@ -16,12 +16,46 @@ export async function runCycle(deps, scope, made, onApply) {
|
|
|
16
16
|
return runScoped(deps, scope);
|
|
17
17
|
const early = made ?? (await publishEarly(deps, await earlyCandidates(deps)));
|
|
18
18
|
// One listing after early publish, shared by bootstrap and all applies.
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
return cycleOver(deps, await deps.registry.listOwnerRows(), early, onApply);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The cycle's pass over a listing already taken: bootstrap, then each
|
|
23
|
+
* connection. A connection in `exclude` is left alone: its control row is not
|
|
24
|
+
* saved or purged, it takes no queue slot, and it is neither applied nor
|
|
25
|
+
* published (a caller's connection that its early publish already settled).
|
|
26
|
+
* The listing the applies read stays whole.
|
|
27
|
+
*/
|
|
28
|
+
async function cycleOver(deps, listed, early, onApply, exclude = new Set()) {
|
|
29
|
+
const failures = new Map();
|
|
30
|
+
// A control row's scope is its connection's id (`controlScope`).
|
|
31
|
+
const connections = await bootstrapConnections(deps, exclude.size === 0
|
|
32
|
+
? listed
|
|
33
|
+
: listed.filter(({ scope }) => !exclude.has(scope)), failures);
|
|
21
34
|
return {
|
|
22
|
-
connections:
|
|
35
|
+
connections: [
|
|
36
|
+
...(await Promise.all(connections
|
|
37
|
+
.filter(({ connectionId }) => !exclude.has(connectionId) && !failures.has(connectionId))
|
|
38
|
+
.map(({ connectionId }) => syncConnection(deps, connectionId, early.get(connectionId), listed, onApply)))),
|
|
39
|
+
...failedBootstraps(deps, failures, early),
|
|
40
|
+
],
|
|
23
41
|
};
|
|
24
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* A connection whose control save or purge failed is reported against itself,
|
|
45
|
+
* with what the early publish already did, and is not applied or published
|
|
46
|
+
* this pass. The other connections go on.
|
|
47
|
+
*/
|
|
48
|
+
function failedBootstraps(deps, failures, early) {
|
|
49
|
+
return [...failures].map(([connectionId, cause]) => {
|
|
50
|
+
const error = errorMessage(cause);
|
|
51
|
+
deps.logger.warn({ connectionId, error }, "Stream sync cycle failed for a connection");
|
|
52
|
+
return {
|
|
53
|
+
connectionId,
|
|
54
|
+
published: early.get(connectionId)?.published ?? [],
|
|
55
|
+
error,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}
|
|
25
59
|
/** Retry only the named connections using one shared owner listing. */
|
|
26
60
|
async function runScoped(deps, scope) {
|
|
27
61
|
const held = new Set((await deps.db.query("SELECT connection_id AS id FROM connections")).map((row) => row.id));
|
|
@@ -54,33 +88,105 @@ async function runScoped(deps, scope) {
|
|
|
54
88
|
* the early publish does not take (deleted, foreign, or a reconnect), which
|
|
55
89
|
* only the cycle's listing and apply can place.
|
|
56
90
|
*/
|
|
57
|
-
export async function runPublish(deps
|
|
91
|
+
export async function runPublish(deps,
|
|
92
|
+
/**
|
|
93
|
+
* The connections the caller awaits. Each one that settled in the early
|
|
94
|
+
* publish is final for this call: the fallback pass that follows excludes it
|
|
95
|
+
* (no bootstrap, apply or publish), so nothing it does, and nothing another
|
|
96
|
+
* requested connection needs from it, changes that result. When every
|
|
97
|
+
* requested connection is final, the pass's failures (discovery, listing,
|
|
98
|
+
* a connection's own) are reported, never thrown. Without it every
|
|
99
|
+
* connection is the caller's own.
|
|
100
|
+
*/
|
|
101
|
+
awaited) {
|
|
58
102
|
const candidates = await earlyCandidates(deps);
|
|
59
103
|
const early = await publishEarly(deps, candidates);
|
|
60
104
|
const fresh = new Set(candidates.fresh.map((c) => c.connectionId));
|
|
61
105
|
// Every connection the early publish takes must have a result: a registry
|
|
62
106
|
// without the batch route throws `RegistryBatchRouteMissingError`, which is
|
|
63
107
|
// kept as the connection's error and leaves no result: nothing is published
|
|
64
|
-
// (the cycle reports it). A fresh
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
|
|
108
|
+
// (the cycle reports it). A fresh connection has streams, so no published
|
|
109
|
+
// result means its deferral was dropped (`publishEarly`), and one deferred
|
|
110
|
+
// stream leaves the connection unsettled whatever else it published; a
|
|
111
|
+
// known connection with no streams has none.
|
|
112
|
+
const isSettled = (connectionId) => {
|
|
68
113
|
const e = early.get(connectionId);
|
|
69
114
|
return (e !== undefined &&
|
|
70
115
|
e.error === null &&
|
|
116
|
+
e.deferred !== true &&
|
|
71
117
|
(e.published.length > 0 || !fresh.has(connectionId)) &&
|
|
72
118
|
e.published.every((r) => r.outcome === "published" || r.outcome === "noop"));
|
|
119
|
+
};
|
|
120
|
+
const earlyEntry = (connectionId, e, unfinished) => ({
|
|
121
|
+
connectionId,
|
|
122
|
+
published: e.published,
|
|
123
|
+
error: e.error !== null
|
|
124
|
+
? errorMessage(e.error)
|
|
125
|
+
: unfinished !== undefined && !isSettled(connectionId)
|
|
126
|
+
? unfinished
|
|
127
|
+
: null,
|
|
73
128
|
});
|
|
74
|
-
|
|
75
|
-
|
|
129
|
+
const settled = [...candidates.active, ...candidates.fresh].every(({ connectionId }) => isSettled(connectionId));
|
|
130
|
+
// What the caller awaits, split by what the early publish did for each: the
|
|
131
|
+
// settled ones are final. Nothing below touches them again, so nothing a
|
|
132
|
+
// sibling does (or another requested connection needs) can change them.
|
|
133
|
+
const final = new Set([...(awaited ?? [])].filter(isSettled));
|
|
134
|
+
const finalEntries = [...early]
|
|
135
|
+
.filter(([id]) => final.has(id))
|
|
136
|
+
.map(([id, e]) => earlyEntry(id, e));
|
|
137
|
+
// Every requested connection is final: the fallback is for siblings only,
|
|
138
|
+
// and its failures are reported, never thrown at this caller.
|
|
139
|
+
const isolated = final.size > 0 && final.size === new Set(awaited).size;
|
|
140
|
+
let unplaced = [];
|
|
141
|
+
let discoveryError;
|
|
142
|
+
try {
|
|
143
|
+
unplaced = await unplacedConnections(deps, candidates);
|
|
144
|
+
}
|
|
145
|
+
catch (cause) {
|
|
146
|
+
if (!isolated)
|
|
147
|
+
throw cause;
|
|
148
|
+
discoveryError = { cause };
|
|
149
|
+
}
|
|
150
|
+
if (settled && unplaced.length === 0 && discoveryError === undefined)
|
|
151
|
+
return {
|
|
152
|
+
connections: [...early].map(([id, e]) => earlyEntry(id, e)),
|
|
153
|
+
};
|
|
154
|
+
if (!isolated) {
|
|
155
|
+
const cycle = await cycleOver(deps, await deps.registry.listOwnerRows(), early, undefined, final);
|
|
156
|
+
return { connections: [...finalEntries, ...cycle.connections] };
|
|
157
|
+
}
|
|
158
|
+
// The fallback runs for the rest and reports its failures, never throws.
|
|
159
|
+
const siblings = [...early].filter(([id]) => !final.has(id));
|
|
160
|
+
let cycle = [];
|
|
161
|
+
let cycleError;
|
|
162
|
+
try {
|
|
163
|
+
if (discoveryError)
|
|
164
|
+
throw discoveryError.cause;
|
|
165
|
+
cycle = (await cycleOver(deps, await deps.registry.listOwnerRows(), early, undefined, final)).connections;
|
|
166
|
+
}
|
|
167
|
+
catch (cause) {
|
|
168
|
+
// Nothing of the pass ran for the siblings: each that did not settle
|
|
169
|
+
// failed with this, and a connection only the pass could place with it.
|
|
170
|
+
cycleError = errorMessage(cause);
|
|
171
|
+
cycle = [
|
|
172
|
+
...siblings.map(([id, e]) => earlyEntry(id, e, cycleError)),
|
|
173
|
+
...unplaced
|
|
174
|
+
.filter((id) => !final.has(id))
|
|
175
|
+
.map((connectionId) => ({
|
|
176
|
+
connectionId,
|
|
177
|
+
published: [],
|
|
178
|
+
error: cycleError,
|
|
179
|
+
})),
|
|
180
|
+
];
|
|
181
|
+
}
|
|
76
182
|
return {
|
|
77
|
-
connections: [...
|
|
78
|
-
|
|
79
|
-
published: e.published,
|
|
80
|
-
error: null,
|
|
81
|
-
})),
|
|
183
|
+
connections: [...finalEntries, ...cycle],
|
|
184
|
+
...(cycleError !== undefined ? { cycleError } : {}),
|
|
82
185
|
};
|
|
83
186
|
}
|
|
187
|
+
function errorMessage(cause) {
|
|
188
|
+
return cause instanceof Error ? cause.message : String(cause);
|
|
189
|
+
}
|
|
84
190
|
async function earlyCandidates(deps) {
|
|
85
191
|
return {
|
|
86
192
|
active: await knownActiveConnections(deps),
|
|
@@ -88,12 +194,14 @@ async function earlyCandidates(deps) {
|
|
|
88
194
|
};
|
|
89
195
|
}
|
|
90
196
|
/**
|
|
91
|
-
*
|
|
92
|
-
* as new:
|
|
197
|
+
* The connections with streams that the early publish takes neither as active
|
|
198
|
+
* nor as new: they wait for the cycle's listing.
|
|
93
199
|
*/
|
|
94
|
-
async function
|
|
200
|
+
async function unplacedConnections(deps, { active, fresh }) {
|
|
95
201
|
const placed = new Set([...active, ...fresh].map(({ connectionId }) => connectionId));
|
|
96
|
-
return (await connectionsWithStreams(deps))
|
|
202
|
+
return (await connectionsWithStreams(deps))
|
|
203
|
+
.map(({ connectionId }) => connectionId)
|
|
204
|
+
.filter((connectionId) => !placed.has(connectionId));
|
|
97
205
|
}
|
|
98
206
|
/**
|
|
99
207
|
* The log's writer reads nothing from the registry: its commit is a
|
|
@@ -132,6 +240,7 @@ async function publishEarly(deps, { active, fresh }) {
|
|
|
132
240
|
early.set(connectionId, {
|
|
133
241
|
published: published.filter((r) => r.outcome !== "deferred"),
|
|
134
242
|
error: null,
|
|
243
|
+
deferred: published.some((r) => r.outcome === "deferred"),
|
|
135
244
|
});
|
|
136
245
|
}
|
|
137
246
|
catch (cause) {
|
|
@@ -157,9 +266,24 @@ listed, onApply) {
|
|
|
157
266
|
let published = early?.published ?? [];
|
|
158
267
|
let error = null;
|
|
159
268
|
let status;
|
|
269
|
+
let failedStreams = [];
|
|
160
270
|
try {
|
|
161
271
|
// A pass includes publish, so it must not join an apply-only operation.
|
|
162
|
-
|
|
272
|
+
// The apply attempt's own record of the streams it marks failed.
|
|
273
|
+
const marked = new Map();
|
|
274
|
+
let outcome;
|
|
275
|
+
try {
|
|
276
|
+
outcome = await deps.queue.run(connectionId, "publish", () => applyConnection(insideQueue({ ...deps, attemptFailures: marked }, connectionId), connectionId, listed, listed?.find((row) => row.scope === connectionId)?.read));
|
|
277
|
+
}
|
|
278
|
+
catch (cause) {
|
|
279
|
+
// Only an apply that threw has a failed load to report; an update that
|
|
280
|
+
// is required names no stream.
|
|
281
|
+
if (!(cause instanceof UpdateRequiredError))
|
|
282
|
+
failedStreams = [...marked]
|
|
283
|
+
.map(([stream, reason]) => ({ stream, reason }))
|
|
284
|
+
.sort((a, b) => a.stream < b.stream ? -1 : a.stream > b.stream ? 1 : 0);
|
|
285
|
+
throw cause;
|
|
286
|
+
}
|
|
163
287
|
onApply?.(outcome);
|
|
164
288
|
if (early && early.error !== null)
|
|
165
289
|
throw early.error;
|
|
@@ -171,19 +295,25 @@ listed, onApply) {
|
|
|
171
295
|
published = [...published, ...through];
|
|
172
296
|
}
|
|
173
297
|
catch (cause) {
|
|
174
|
-
error =
|
|
298
|
+
error = errorMessage(cause);
|
|
175
299
|
if (cause instanceof UpdateRequiredError)
|
|
176
300
|
status = "update_required";
|
|
177
301
|
// The timer and `/sync/trigger` drop the report. A connection whose
|
|
178
302
|
// publish keeps failing would otherwise stay unpublished with no trace:
|
|
179
303
|
// its run ended as accepted, but nothing it holds becomes readable.
|
|
180
304
|
deps.logger.warn({ connectionId, error }, "Stream sync cycle failed for a connection");
|
|
305
|
+
// Say which streams this attempt's apply stopped on, so one bad object
|
|
306
|
+
// reads as that and not as a connection that failed whole. Rows of
|
|
307
|
+
// earlier attempts do not count.
|
|
308
|
+
if (status === undefined && failedStreams.length > 0)
|
|
309
|
+
status = "degraded";
|
|
181
310
|
}
|
|
182
311
|
return {
|
|
183
312
|
connectionId,
|
|
184
313
|
published,
|
|
185
314
|
error,
|
|
186
315
|
...(status ? { status } : {}),
|
|
316
|
+
...(failedStreams.length > 0 ? { failedStreams } : {}),
|
|
187
317
|
};
|
|
188
318
|
}
|
|
189
319
|
//# sourceMappingURL=cycle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle.js","sourceRoot":"","sources":["../../src/localdb/cycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAqB,MAAM,YAAY,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,GAE1B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AA+B3D;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC5B,IAAmB,EACnB,KAAkB,EAClB,IAAgC,EAChC,OAAyC;IAEzC,IAAI,KAAK;QAAE,OAAO,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,MAAM,YAAY,CAAC,IAAI,EAAE,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9E,wEAAwE;IACxE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;IACnD,MAAM,WAAW,GAAG,MAAM,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO;QACL,WAAW,EAAE,MAAM,OAAO,CAAC,GAAG,CAC5B,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CACnC,cAAc,CACZ,IAAI,EACJ,YAAY,EACZ,KA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AAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7B,GAAG,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { GatewayRefusalCode } from "../sync/gateway-refusal.js";
|
|
2
|
+
/** Why a part of a delete does not finish by retrying here. */
|
|
3
|
+
export type DeleteBlockReason =
|
|
4
|
+
/**
|
|
5
|
+
* The gateway's terminal refusals (`GATEWAY_REFUSAL_CODES`: the owner
|
|
6
|
+
* switched under a policy that admits no legacy delete, or this server's
|
|
7
|
+
* key is revoked or was never registered). One list, shared with the parser.
|
|
8
|
+
*/
|
|
9
|
+
GatewayRefusalCode
|
|
10
|
+
/**
|
|
11
|
+
* This device cannot delete from the gateway or storage (no server key, or an
|
|
12
|
+
* enclave). Any device of the account that can does it when it next runs.
|
|
13
|
+
*/
|
|
14
|
+
| "needs_another_device"
|
|
15
|
+
/** The control tombstone failed to settle: the connection is live again. */
|
|
16
|
+
| "tombstone_rolled_back"
|
|
17
|
+
/** The newest log segment does not open with this device's key. */
|
|
18
|
+
| "log_unreadable"
|
|
19
|
+
/**
|
|
20
|
+
* Out-of-line body pieces stay in storage: their names are shared with a
|
|
21
|
+
* later lifetime of the connection, so they are not deleted yet.
|
|
22
|
+
*/
|
|
23
|
+
| "body_pieces_retained"
|
|
24
|
+
/**
|
|
25
|
+
* Another device erased the log. Storage no longer names the body pieces it
|
|
26
|
+
* left, and only that device recorded them, so this device cannot say they
|
|
27
|
+
* are gone.
|
|
28
|
+
*/
|
|
29
|
+
| "erased_elsewhere"
|
|
30
|
+
/**
|
|
31
|
+
* The connection was added again before its log was erased, or while it was.
|
|
32
|
+
* The old lifetime's objects share the log scope with the new one, so none
|
|
33
|
+
* is deleted and none can be shown gone. A later delete of the connection
|
|
34
|
+
* erases both lifetimes.
|
|
35
|
+
*/
|
|
36
|
+
| "re_added";
|
|
37
|
+
export type DeletePart = {
|
|
38
|
+
readonly state: "done";
|
|
39
|
+
} | {
|
|
40
|
+
readonly state: "pending";
|
|
41
|
+
} | {
|
|
42
|
+
readonly state: "blocked";
|
|
43
|
+
readonly reason: DeleteBlockReason;
|
|
44
|
+
};
|
|
45
|
+
export interface ConnectionDeleteStatus {
|
|
46
|
+
readonly fence: DeletePart;
|
|
47
|
+
readonly legacy: DeletePart;
|
|
48
|
+
readonly storage: DeletePart;
|
|
49
|
+
}
|
|
50
|
+
export declare const PART_DONE: DeletePart;
|
|
51
|
+
export declare const PART_PENDING: DeletePart;
|
|
52
|
+
export declare const blocked: (reason: DeleteBlockReason) => DeletePart;
|
|
53
|
+
//# sourceMappingURL=delete-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-status.d.ts","sourceRoot":"","sources":["../../src/localdb/delete-status.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,+DAA+D;AAC/D,MAAM,MAAM,iBAAiB;AAC3B;;;;GAIG;AACD,kBAAkB;AACpB;;;GAGG;GACD,sBAAsB;AACxB,4EAA4E;GAC1E,uBAAuB;AACzB,mEAAmE;GACjE,gBAAgB;AAClB;;;GAGG;GACD,sBAAsB;AACxB;;;;GAIG;GACD,kBAAkB;AACpB;;;;;GAKG;GACD,UAAU,CAAC;AAEf,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;CAC9B;AAED,eAAO,MAAM,SAAS,EAAE,UAA8B,CAAC;AACvD,eAAO,MAAM,YAAY,EAAE,UAAiC,CAAC;AAC7D,eAAO,MAAM,OAAO,GAAI,QAAQ,iBAAiB,KAAG,UAGlD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// What is left of a connection delete, in three parts. An app says "deleted"
|
|
2
|
+
// only when all three are `done`; until then it says what is left.
|
|
3
|
+
//
|
|
4
|
+
// fence the control tombstone: every surface sees the connection as gone.
|
|
5
|
+
// legacy the legacy copy: the gateway's legacy data points of the
|
|
6
|
+
// connector's bound scopes, and their blobs in storage.
|
|
7
|
+
// storage the stream-sync objects: the connection log's segments, parts and
|
|
8
|
+
// body pieces in storage.
|
|
9
|
+
//
|
|
10
|
+
// `pending` finishes by itself: this device or another one is on it. `blocked`
|
|
11
|
+
// does not: it says why, and what ends it is outside this device's retry loop
|
|
12
|
+
// (another device with the access, an operator, or work not built yet).
|
|
13
|
+
export const PART_DONE = { state: "done" };
|
|
14
|
+
export const PART_PENDING = { state: "pending" };
|
|
15
|
+
export const blocked = (reason) => ({
|
|
16
|
+
state: "blocked",
|
|
17
|
+
reason,
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=delete-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-status.js","sourceRoot":"","sources":["../../src/localdb/delete-status.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,mEAAmE;AACnE,EAAE;AACF,+EAA+E;AAC/E,sEAAsE;AACtE,mEAAmE;AACnE,+EAA+E;AAC/E,qCAAqC;AACrC,EAAE;AACF,+EAA+E;AAC/E,8EAA8E;AAC9E,wEAAwE;AAmDxE,MAAM,CAAC,MAAM,SAAS,GAAe,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AACvD,MAAM,CAAC,MAAM,YAAY,GAAe,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAC7D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAyB,EAAc,EAAE,CAAC,CAAC;IACjE,KAAK,EAAE,SAAS;IAChB,MAAM;CACP,CAAC,CAAC"}
|
package/dist/localdb/delete.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { LocalSyncDeps } from "./deps.js";
|
|
2
2
|
import type { ErasureReport } from "./log-erase.js";
|
|
3
|
+
import { type ConnectionDeleteStatus } from "./delete-status.js";
|
|
4
|
+
import { type LegacyDeletePorts } from "./legacy-delete.js";
|
|
3
5
|
export { ConnectionLifetimeChanged, InvalidConnectionLifetime, } from "./delete-lifetime.js";
|
|
4
6
|
export declare class ConnectionStoppedError extends Error {
|
|
5
7
|
readonly connector: string;
|
|
@@ -61,6 +63,25 @@ export interface ConnectionDeleter {
|
|
|
61
63
|
/** The lifetime the connector's live control rows hold now (see `delete-lifetime.ts`). */
|
|
62
64
|
readConnectionLifetime(connector: string): Promise<string>;
|
|
63
65
|
resumeDeletes(): Promise<readonly PendingDelete[]>;
|
|
66
|
+
/**
|
|
67
|
+
* What is left of the connector's delete here, in three parts
|
|
68
|
+
* (`delete-status.ts`). A fact of this device's last pass, not a guess: a
|
|
69
|
+
* part no pass has judged yet is `pending`.
|
|
70
|
+
*/
|
|
71
|
+
deleteStatus(connector: string): Promise<ConnectionDeleteStatus>;
|
|
72
|
+
/**
|
|
73
|
+
* `deleteStatus` from what this device holds, with no read of the registry:
|
|
74
|
+
* for an answer that must not wait on the network (the delete request's).
|
|
75
|
+
* The verdict it reads is the one last compared with the registry, so it
|
|
76
|
+
* can lag a delete another device made until `deleteStatus` is read.
|
|
77
|
+
*/
|
|
78
|
+
deleteStatusSnapshot(connector: string): Promise<ConnectionDeleteStatus>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether work is queued that can change a part now reading `pending`: an
|
|
81
|
+
* erasure pass owed here (the start sweep, or one a pass left unfinished).
|
|
82
|
+
* A delete still landing is not counted: its intent row is its queue.
|
|
83
|
+
*/
|
|
84
|
+
erasureOwed(): boolean;
|
|
64
85
|
}
|
|
65
86
|
/**
|
|
66
87
|
* The erasure of deleted connections' log objects, as the deleter drives it
|
|
@@ -70,6 +91,8 @@ export type EraseLogs = (connector: string, signal: AbortSignal,
|
|
|
70
91
|
/** Namespaces of the connector whose delete has not settled here: not erased. */
|
|
71
92
|
options?: {
|
|
72
93
|
readonly skipNamespaces: ReadonlySet<string>;
|
|
94
|
+
/** The delete's confirmed control tombstone by namespace (`LegacyMemory.tombstones`). */
|
|
95
|
+
readonly tombstones: ReadonlyMap<string, number>;
|
|
73
96
|
}) => Promise<ErasureReport>;
|
|
74
97
|
export declare function createConnectionDeleter(originalDeps: LocalSyncDeps, options?: {
|
|
75
98
|
readonly eraseLegacy?: (connector: string) => Promise<void>;
|
|
@@ -85,6 +108,12 @@ export declare function createConnectionDeleter(originalDeps: LocalSyncDeps, opt
|
|
|
85
108
|
* and once at the first call after a start, for deletes settled before it.
|
|
86
109
|
*/
|
|
87
110
|
readonly eraseLogs?: EraseLogs;
|
|
111
|
+
/**
|
|
112
|
+
* The legacy stage's ports (`legacy-delete.ts`), read when a pass runs. It
|
|
113
|
+
* runs in the same pass as `eraseLogs`, under the same settled-delete rule
|
|
114
|
+
* and the same retry loop.
|
|
115
|
+
*/
|
|
116
|
+
readonly legacy?: () => LegacyDeletePorts | undefined;
|
|
88
117
|
/**
|
|
89
118
|
* How long a request waits for the fence before it answers
|
|
90
119
|
* `fenced: false`. The landing keeps going in the background and the
|
|
@@ -95,6 +124,12 @@ export declare function createConnectionDeleter(originalDeps: LocalSyncDeps, opt
|
|
|
95
124
|
* takes (tests only).
|
|
96
125
|
*/
|
|
97
126
|
readonly fenceWaitMs?: number;
|
|
127
|
+
/**
|
|
128
|
+
* A pass left a connector's erasure unfinished: it is queued again for the
|
|
129
|
+
* retry loop. Called when that pass ends, not when every connector's pass
|
|
130
|
+
* has, so a connector waiting on storage never holds back another's retry.
|
|
131
|
+
*/
|
|
132
|
+
readonly onUnfinished?: () => void;
|
|
98
133
|
}): {
|
|
99
134
|
requestConnectionDelete(connector: string, lifetime?: {
|
|
100
135
|
readonly lifetime?: string;
|
|
@@ -105,8 +140,19 @@ export declare function createConnectionDeleter(originalDeps: LocalSyncDeps, opt
|
|
|
105
140
|
readConnectionLifetime: (connector: string) => Promise<string>;
|
|
106
141
|
resumeDeletes(): Promise<PendingDelete[]>;
|
|
107
142
|
resumeDelete: (connector: string) => Promise<PendingDelete | null>;
|
|
108
|
-
|
|
109
|
-
|
|
143
|
+
deleteStatus: (connector: string) => Promise<ConnectionDeleteStatus>;
|
|
144
|
+
deleteStatusSnapshot: (connector: string) => Promise<ConnectionDeleteStatus>;
|
|
145
|
+
/**
|
|
146
|
+
* A connection of the connector was purged here: its erasure may be owed.
|
|
147
|
+
* `tombstone` is the control tombstone that ended it (namespace and
|
|
148
|
+
* registry version): the identity of the delete, which a delete of the
|
|
149
|
+
* same connector later replaces. A purge that ran ahead of its fence has
|
|
150
|
+
* none yet: it owes the stages with no verdict and learns nothing.
|
|
151
|
+
*/
|
|
152
|
+
noteSettled(connector: string, tombstone?: {
|
|
153
|
+
readonly ns: string;
|
|
154
|
+
readonly version: number;
|
|
155
|
+
}): void;
|
|
110
156
|
/**
|
|
111
157
|
* A connection was purged and its connector is unknown: the sweep of
|
|
112
158
|
* every deleted connection is owed again.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../src/localdb/delete.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../src/localdb/delete.ts"],"names":[],"mappings":"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