@serfab/quereus-plugin-sereus 1.20.0 → 1.22.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/README.md +1 -1
- package/dist/app-schema.d.ts +22 -2
- package/dist/app-schema.js +152 -23
- package/dist/app-schema.js.map +1 -1
- package/dist/compose-strand.js +19 -8
- package/dist/compose-strand.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugin-browser.js +28 -28
- package/dist/plugin-browser.js.map +4 -4
- package/dist/types.d.ts +13 -5
- package/package.json +8 -8
- package/src/app-schema.ts +397 -263
- package/src/compose-strand.ts +26 -9
- package/src/index.ts +30 -30
- package/src/types.ts +14 -6
package/README.md
CHANGED
|
@@ -276,7 +276,7 @@ The result's `onCommitDurability(listener)` is called after every commit that wr
|
|
|
276
276
|
|
|
277
277
|
### Offline mode
|
|
278
278
|
|
|
279
|
-
With `offline` given, the result's `offline` is the queue's controller (`enter()`, `exit()`, `whenDrained()`, `onStatus(listener)`, `entries()`, …), passed through from `@optimystic/quereus-plugin-optimystic` ([Offline mode](https://github.com/gotchoices/optimystic/blob/main/packages/quereus-plugin-optimystic/README.md#offline-mode--pluginoffline)); `offlineControllerOf(db)` finds it from the `Database`, and the status, state and error types are re-exported here. The `Strand` tables are always acknowledged by the network, and an `App` schema apply that queued transactions refuse is retried once they drain rather than failing the connect: the result's `appSchema` settles with how it ended, `appSchemaWaitingFor` is `'queue'`, and `appSchemaDeferredBy` names the transactions that refused it. An apply that cannot reach the strand's cohort is deferred
|
|
279
|
+
With `offline` given, the result's `offline` is the queue's controller (`enter()`, `exit()`, `whenDrained()`, `onStatus(listener)`, `entries()`, …), passed through from `@optimystic/quereus-plugin-optimystic` ([Offline mode](https://github.com/gotchoices/optimystic/blob/main/packages/quereus-plugin-optimystic/README.md#offline-mode--pluginoffline)); `offlineControllerOf(db)` finds it from the `Database`, and the status, state and error types are re-exported here. The `Strand` tables are always acknowledged by the network, and an `App` schema apply that queued transactions refuse is retried once they drain rather than failing the connect: the result's `appSchema` settles with how it ended, `appSchemaWaitingFor` is `'queue'`, and `appSchemaDeferredBy` names the transactions that refused it. An apply that cannot reach the strand's cohort is deferred too, offline mode or not (`appSchemaWaitingFor: 'cohort'`): see [strands.md → An app schema upgrade waits for the queue or the cohort](../../docs/strands.md#an-app-schema-upgrade-waits-for-the-queue-or-the-cohort). A schema that can never apply to the strand's tables, such as a `not null` column with no default added to a table with rows, fails the connect with `AppSchemaRefusedError` (exported with `appSchemaRefusalOf(error)`, which finds one through wrapping errors), so a host knows not to retry it: see [strands.md → A schema that can never apply here is not retried](../../docs/strands.md#a-schema-that-can-never-apply-here-is-not-retried). Where the queue is saved is in [strands.md → Offline mode](../../docs/strands.md#offline-mode).
|
|
280
280
|
|
|
281
281
|
### Founding a strand: `createEmptyCollections()`
|
|
282
282
|
|
package/dist/app-schema.d.ts
CHANGED
|
@@ -17,8 +17,25 @@ import type { StrandOfflineController, AppSchemaOutcome, AppSchemaWait } from '.
|
|
|
17
17
|
* Refuses a schema holding a `seed` item: the apply runs on every node of the strand at every
|
|
18
18
|
* connect, so seed inserts would put a network write on each bring-up and two nodes inserting
|
|
19
19
|
* the same key at once would collide. Rows an app needs at birth are the founding app's to write.
|
|
20
|
+
*
|
|
21
|
+
* Every refusal decided by the schema itself, or by the schema against this node's tables and rows,
|
|
22
|
+
* throws {@link AppSchemaRefusedError}: retrying the same schema here fails the same way.
|
|
20
23
|
*/
|
|
21
24
|
export declare function applyAppSchema(db: Database, schema: string): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* An sApp schema refused for a reason that does not pass: the schema itself (a seed item, an item the
|
|
27
|
+
* parser skipped, a syntax error), or the schema against the tables and rows this node holds, such as a
|
|
28
|
+
* `not null` column with no default added to a table that has rows. Applying the same schema here again
|
|
29
|
+
* fails the same way, so a host should not retry it until the app supplies a different one. A storage
|
|
30
|
+
* or network fault is never this error.
|
|
31
|
+
*
|
|
32
|
+
* `cause` is the error Quereus raised, when it raised one.
|
|
33
|
+
*/
|
|
34
|
+
export declare class AppSchemaRefusedError extends Error {
|
|
35
|
+
constructor(message: string, options?: ErrorOptions);
|
|
36
|
+
}
|
|
37
|
+
/** The {@link AppSchemaRefusedError} `err` is or wraps, walking `cause`, so a wrapper added between the apply and the catch cannot hide it. */
|
|
38
|
+
export declare function appSchemaRefusalOf(err: unknown): AppSchemaRefusedError | undefined;
|
|
22
39
|
/** What {@link applyAppSchemaOrDefer} reports, in the shape `SereusPluginResult` carries it. */
|
|
23
40
|
export interface AppSchemaApply {
|
|
24
41
|
appSchema: Promise<AppSchemaOutcome>;
|
|
@@ -45,8 +62,11 @@ export interface AppSchemaWaits {
|
|
|
45
62
|
* alone after an app update would otherwise not open the strand at all (gotchoices/sereus#55).
|
|
46
63
|
* Retried when the strand node connects to a peer, and on a backoff ({@link COHORT_RETRY_MS}).
|
|
47
64
|
*
|
|
48
|
-
* Quereus unwinds a refused apply,
|
|
49
|
-
*
|
|
65
|
+
* Quereus unwinds a refused apply, whether a migration step or the closing catalog commit refused it,
|
|
66
|
+
* so `db` keeps the `App` schema it had, and `appSchema` settles with how the retries ended. Any other
|
|
67
|
+
* error from the first apply is thrown ({@link AppSchemaRefusedError} when the schema can never apply
|
|
68
|
+
* to these tables), and so is a refusal Quereus could not unwind that leaves a retry nothing to send
|
|
69
|
+
* ({@link retryableRefusalOf}). A retry that ends in such a refusal settles `failed` with it, typed the same way.
|
|
50
70
|
*
|
|
51
71
|
* Waiting before returning was rejected: that withholds the strand from the app right after an app
|
|
52
72
|
* update, which is when a phone is most likely to be offline. So was refusing the connect: the queue
|
package/dist/app-schema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import { TransactionActiveError } from '@quereus/quereus';
|
|
2
|
+
import { QuereusError, StatusCode, TransactionActiveError } from '@quereus/quereus';
|
|
3
3
|
import { classifyCommitFailure } from '@optimystic/db-core';
|
|
4
4
|
import { QueuedEntriesBlockSchemaChangeError, QueueDisposedError } from '@optimystic/quereus-plugin-optimystic/plugin';
|
|
5
5
|
const log = debug('sereus:plugin:strand');
|
|
@@ -19,21 +19,53 @@ const log = debug('sereus:plugin:strand');
|
|
|
19
19
|
* Refuses a schema holding a `seed` item: the apply runs on every node of the strand at every
|
|
20
20
|
* connect, so seed inserts would put a network write on each bring-up and two nodes inserting
|
|
21
21
|
* the same key at once would collide. Rows an app needs at birth are the founding app's to write.
|
|
22
|
+
*
|
|
23
|
+
* Every refusal decided by the schema itself, or by the schema against this node's tables and rows,
|
|
24
|
+
* throws {@link AppSchemaRefusedError}: retrying the same schema here fails the same way.
|
|
22
25
|
*/
|
|
23
26
|
export async function applyAppSchema(db, schema) {
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
try {
|
|
28
|
+
await declareAppSchema(db, schema);
|
|
29
|
+
await db.exec('apply schema App;');
|
|
30
|
+
}
|
|
31
|
+
catch (err) {
|
|
32
|
+
throw asAppSchemaRefusal(err);
|
|
33
|
+
}
|
|
26
34
|
}
|
|
27
35
|
/** Declare `schema` as `App`, refusing the items {@link applyAppSchema} refuses. Writes nothing to the strand. */
|
|
28
36
|
async function declareAppSchema(db, schema) {
|
|
29
|
-
await db.exec(`
|
|
30
|
-
declare schema App {
|
|
31
|
-
${schema}
|
|
32
|
-
}
|
|
37
|
+
await db.exec(`
|
|
38
|
+
declare schema App {
|
|
39
|
+
${schema}
|
|
40
|
+
}
|
|
33
41
|
`);
|
|
34
42
|
assertNoIgnoredItems(db);
|
|
35
43
|
assertNoSeedItems(db);
|
|
36
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* An sApp schema refused for a reason that does not pass: the schema itself (a seed item, an item the
|
|
47
|
+
* parser skipped, a syntax error), or the schema against the tables and rows this node holds, such as a
|
|
48
|
+
* `not null` column with no default added to a table that has rows. Applying the same schema here again
|
|
49
|
+
* fails the same way, so a host should not retry it until the app supplies a different one. A storage
|
|
50
|
+
* or network fault is never this error.
|
|
51
|
+
*
|
|
52
|
+
* `cause` is the error Quereus raised, when it raised one.
|
|
53
|
+
*/
|
|
54
|
+
export class AppSchemaRefusedError extends Error {
|
|
55
|
+
constructor(message, options) {
|
|
56
|
+
super(message, options);
|
|
57
|
+
this.name = 'AppSchemaRefusedError';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/** The {@link AppSchemaRefusedError} `err` is or wraps, walking `cause`, so a wrapper added between the apply and the catch cannot hide it. */
|
|
61
|
+
export function appSchemaRefusalOf(err) {
|
|
62
|
+
for (let at = err; at instanceof Error; at = at.cause) {
|
|
63
|
+
if (at instanceof AppSchemaRefusedError) {
|
|
64
|
+
return at;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
37
69
|
/**
|
|
38
70
|
* Step 7 of `composeStrand`: {@link applyAppSchema}, except that an apply refused for a reason
|
|
39
71
|
* that passes does not throw. Two such reasons:
|
|
@@ -45,8 +77,11 @@ async function declareAppSchema(db, schema) {
|
|
|
45
77
|
* alone after an app update would otherwise not open the strand at all (gotchoices/sereus#55).
|
|
46
78
|
* Retried when the strand node connects to a peer, and on a backoff ({@link COHORT_RETRY_MS}).
|
|
47
79
|
*
|
|
48
|
-
* Quereus unwinds a refused apply,
|
|
49
|
-
*
|
|
80
|
+
* Quereus unwinds a refused apply, whether a migration step or the closing catalog commit refused it,
|
|
81
|
+
* so `db` keeps the `App` schema it had, and `appSchema` settles with how the retries ended. Any other
|
|
82
|
+
* error from the first apply is thrown ({@link AppSchemaRefusedError} when the schema can never apply
|
|
83
|
+
* to these tables), and so is a refusal Quereus could not unwind that leaves a retry nothing to send
|
|
84
|
+
* ({@link retryableRefusalOf}). A retry that ends in such a refusal settles `failed` with it, typed the same way.
|
|
50
85
|
*
|
|
51
86
|
* Waiting before returning was rejected: that withholds the strand from the app right after an app
|
|
52
87
|
* update, which is when a phone is most likely to be offline. So was refusing the connect: the queue
|
|
@@ -67,7 +102,7 @@ export async function applyAppSchemaOrDefer(db, schema, waits, released) {
|
|
|
67
102
|
return { appSchema: Promise.resolve({ state: 'applied' }) };
|
|
68
103
|
}
|
|
69
104
|
catch (err) {
|
|
70
|
-
const deferral =
|
|
105
|
+
const deferral = await retryableRefusalOf(db, err);
|
|
71
106
|
if (!deferral) {
|
|
72
107
|
throw err;
|
|
73
108
|
}
|
|
@@ -91,8 +126,7 @@ async function retryDeferredAppSchema(db, schema, first, waits, released) {
|
|
|
91
126
|
if (released.aborted) {
|
|
92
127
|
return { state: 'cancelled' };
|
|
93
128
|
}
|
|
94
|
-
await
|
|
95
|
-
await db.exec('apply schema App;', undefined, { transaction: true });
|
|
129
|
+
await applyOutsideOpenTransaction(db, schema, released);
|
|
96
130
|
log('Deferred sApp schema applied');
|
|
97
131
|
return { state: 'applied', deferred: true };
|
|
98
132
|
}
|
|
@@ -101,21 +135,36 @@ async function retryDeferredAppSchema(db, schema, first, waits, released) {
|
|
|
101
135
|
log('Deferred sApp schema apply cancelled by shutdown');
|
|
102
136
|
return { state: 'cancelled' };
|
|
103
137
|
}
|
|
104
|
-
|
|
105
|
-
log('Deferred sApp schema apply waiting for an open transaction to end');
|
|
106
|
-
await abortableDelay(OPEN_TRANSACTION_RETRY_MS, released);
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
const again = deferralOf(err);
|
|
138
|
+
const again = await retryableRefusalOf(db, err);
|
|
110
139
|
if (!again) {
|
|
111
140
|
log('Deferred sApp schema apply failed: %O', err);
|
|
112
|
-
return { state: 'failed', error: err };
|
|
141
|
+
return { state: 'failed', error: asAppSchemaRefusal(err) };
|
|
113
142
|
}
|
|
114
143
|
logDeferral('Deferred sApp schema apply', again);
|
|
115
144
|
deferral = again;
|
|
116
145
|
}
|
|
117
146
|
}
|
|
118
147
|
}
|
|
148
|
+
/** One atomic apply, once no other caller holds a transaction open. Throws the open-transaction refusal when `released` aborts during the wait. */
|
|
149
|
+
async function applyOutsideOpenTransaction(db, schema, released) {
|
|
150
|
+
for (;;) {
|
|
151
|
+
await declareAppSchema(db, schema);
|
|
152
|
+
try {
|
|
153
|
+
await db.exec('apply schema App;', undefined, { transaction: true });
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
catch (err) {
|
|
157
|
+
if (!(err instanceof TransactionActiveError)) {
|
|
158
|
+
throw err;
|
|
159
|
+
}
|
|
160
|
+
log('Deferred sApp schema apply waiting for an open transaction to end');
|
|
161
|
+
await abortableDelay(OPEN_TRANSACTION_RETRY_MS, released);
|
|
162
|
+
if (released.aborted) {
|
|
163
|
+
throw err;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
119
168
|
/** Waits for whatever may get the retry past `deferral`. */
|
|
120
169
|
async function nextChance(deferral, waits, cohortRetries, released) {
|
|
121
170
|
if (deferral.wait === 'queue' && waits.queue) {
|
|
@@ -127,9 +176,41 @@ async function nextChance(deferral, waits, cohortRetries, released) {
|
|
|
127
176
|
}
|
|
128
177
|
await nextCohortChance(waits.peers, cohortRetryDelay(cohortRetries), released);
|
|
129
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* The refusal `err` is or wraps, when retrying it would send something. An apply refused after a
|
|
181
|
+
* `drop table` or `drop column` cannot be unwound, so `db` can already hold the whole new schema while
|
|
182
|
+
* the store holds the old one. A retry would then diff clean and settle `applied` with nothing written,
|
|
183
|
+
* so that refusal counts as a failure: a restart plans the change again from the store.
|
|
184
|
+
*/
|
|
185
|
+
async function retryableRefusalOf(db, err) {
|
|
186
|
+
const deferral = deferralOf(err);
|
|
187
|
+
if (!deferral) {
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
190
|
+
try {
|
|
191
|
+
if (await appSchemaHasPendingChanges(db)) {
|
|
192
|
+
return deferral;
|
|
193
|
+
}
|
|
194
|
+
log('sApp schema apply was refused, and the database already holds the new schema: %O', err);
|
|
195
|
+
}
|
|
196
|
+
catch (diffError) {
|
|
197
|
+
log('Could not check what a refused sApp schema apply left to send: %O', diffError);
|
|
198
|
+
}
|
|
199
|
+
return undefined;
|
|
200
|
+
}
|
|
201
|
+
async function appSchemaHasPendingChanges(db) {
|
|
202
|
+
for await (const _change of db.eval('diff schema App')) {
|
|
203
|
+
return true;
|
|
204
|
+
}
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
130
207
|
/**
|
|
131
208
|
* The refusal `err` is or wraps, when a later retry can get past it: Quereus rewraps an error out of
|
|
132
|
-
*
|
|
209
|
+
* a migration step, keeping it as `cause`.
|
|
210
|
+
*
|
|
211
|
+
* `classifyCommitFailure` refuses to walk `cause` itself, because a commit-phase shortfall nested
|
|
212
|
+
* there means the write is in doubt rather than unsent. Walking it here is safe: an apply is a
|
|
213
|
+
* declarative diff, so a retry after a write that did land changes nothing.
|
|
133
214
|
*/
|
|
134
215
|
function deferralOf(err) {
|
|
135
216
|
for (let at = err; at instanceof Error; at = at.cause) {
|
|
@@ -163,7 +244,13 @@ function cohortRetryDelay(retriesBefore) {
|
|
|
163
244
|
* the apply asks for its cohort; a retry that still finds it missing waits for the next chance.
|
|
164
245
|
*/
|
|
165
246
|
const COHORT_CONNECT_SETTLE_MS = 2000;
|
|
166
|
-
/**
|
|
247
|
+
/**
|
|
248
|
+
* Resolves {@link COHORT_CONNECT_SETTLE_MS} after the strand node's next peer connect, after `delayMs`, or when `signal` aborts.
|
|
249
|
+
*
|
|
250
|
+
* NOTE: every connect wakes a retry, the relay's included, and a retry that reaches the cohort's
|
|
251
|
+
* refusal holds the database's statement lock while it waits for it. If that shows up as stalled app
|
|
252
|
+
* statements on a node with many connects, wake only on a connect to a strand member.
|
|
253
|
+
*/
|
|
167
254
|
async function nextCohortChance(peers, delayMs, signal) {
|
|
168
255
|
const byConnect = await new Promise(resolve => {
|
|
169
256
|
const done = (connected) => {
|
|
@@ -203,14 +290,56 @@ function assertNoIgnoredItems(db) {
|
|
|
203
290
|
const ignored = declaredAppItems(db).filter(item => item.type === 'declareIgnored').length;
|
|
204
291
|
if (ignored > 0) {
|
|
205
292
|
// Only a count: Quereus leaves an ignored item's source text empty.
|
|
206
|
-
throw new
|
|
293
|
+
throw new AppSchemaRefusedError(`sApp schema has ${ignored} item(s) the parser does not recognize (a \`create …\` prefix or a misspelled item keyword such as \`tabel\`); items are \`table\`, \`index\`, \`unique index\`, \`view\`, \`materialized view\` and \`assertion\``);
|
|
207
294
|
}
|
|
208
295
|
}
|
|
209
296
|
function assertNoSeedItems(db) {
|
|
210
297
|
// Quereus refuses a second seed for one table at declare, so these names are distinct.
|
|
211
298
|
const tables = declaredAppItems(db).flatMap(item => item.type === 'declaredSeed' ? [item.tableName] : []);
|
|
212
299
|
if (tables.length > 0) {
|
|
213
|
-
throw new
|
|
300
|
+
throw new AppSchemaRefusedError(`sApp schema has seed item(s) for table(s) ${tables.join(', ')}; Sereus does not apply seed rows to a strand — insert the rows an app needs at birth from the app when it founds the strand`);
|
|
214
301
|
}
|
|
215
302
|
}
|
|
303
|
+
/** `err` typed as an {@link AppSchemaRefusedError} when {@link isSchemaRefusal} holds, else `err` unchanged. */
|
|
304
|
+
function asAppSchemaRefusal(err) {
|
|
305
|
+
if (!isSchemaRefusal(err)) {
|
|
306
|
+
return err;
|
|
307
|
+
}
|
|
308
|
+
return new AppSchemaRefusedError(`sApp schema cannot be applied to this strand's tables: ${err.message}`, { cause: err });
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Status codes Quereus raises for a refusal it decides from the schema and the catalog and rows it holds:
|
|
312
|
+
* a failed migration step is `ERROR` with the step's own error as `cause` (a backfill that breaks
|
|
313
|
+
* `not null` is `CONSTRAINT`, a key or type change it cannot make is `ERROR` or `UNSUPPORTED`).
|
|
314
|
+
* An allowlist rather than a list of fault codes, so a code Quereus adds later keeps today's retries.
|
|
315
|
+
*/
|
|
316
|
+
const SCHEMA_REFUSAL_CODES = new Set([
|
|
317
|
+
StatusCode.ERROR,
|
|
318
|
+
StatusCode.CONSTRAINT,
|
|
319
|
+
StatusCode.MISMATCH,
|
|
320
|
+
StatusCode.UNSUPPORTED,
|
|
321
|
+
StatusCode.SYNTAX,
|
|
322
|
+
StatusCode.SCHEMA,
|
|
323
|
+
StatusCode.RANGE,
|
|
324
|
+
]);
|
|
325
|
+
/**
|
|
326
|
+
* Whether every link of `err`'s `cause` chain is a `QuereusError` with a {@link SCHEMA_REFUSAL_CODES} code.
|
|
327
|
+
* A storage or network fault anywhere in the chain is a plain `Error` (Optimystic's `PromiseShortfallError`,
|
|
328
|
+
* `BlockUnavailableError`) or carries `BUSY` or `MISUSE`, so it keeps the error untyped and retryable.
|
|
329
|
+
*
|
|
330
|
+
* NOTE: `ERROR` is broad, and one known `ERROR` with no `cause` is transient: Optimystic's "Committed read
|
|
331
|
+
* refused: storage is in a partially-committed state". An apply makes no committed reads (Quereus refuses
|
|
332
|
+
* them while a schema migrates), so it cannot reach this test. If a transient fault is ever seen typed as a
|
|
333
|
+
* refusal, have Optimystic give it a fault code or a `cause` rather than matching its message here.
|
|
334
|
+
*/
|
|
335
|
+
function isSchemaRefusal(err) {
|
|
336
|
+
let at = err;
|
|
337
|
+
do {
|
|
338
|
+
if (!(at instanceof QuereusError) || !SCHEMA_REFUSAL_CODES.has(at.code)) {
|
|
339
|
+
return false;
|
|
340
|
+
}
|
|
341
|
+
at = at.cause;
|
|
342
|
+
} while (at !== undefined);
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
216
345
|
//# sourceMappingURL=app-schema.js.map
|
package/dist/app-schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-schema.js","sourceRoot":"","sources":["../src/app-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAiB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"app-schema.js","sourceRoot":"","sources":["../src/app-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAA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;IAC/N,CAAC;AACF,CAAC;AAED,gHAAgH;AAChH,SAAS,kBAAkB,CAAC,GAAY;IACvC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3B,OAAO,GAAG,CAAC;IACZ,CAAC;IACD,OAAO,IAAI,qBAAqB,CAAC,0DAA0D,GAAG,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AAC3H,CAAC;AAED;;;;;GAKG;AACH,MAAM,oBAAoB,GAAwB,IAAI,GAAG,CAAC;IACzD,UAAU,CAAC,KAAK;IAChB,UAAU,CAAC,UAAU;IACrB,UAAU,CAAC,QAAQ;IACnB,UAAU,CAAC,WAAW;IACtB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,KAAK;CAChB,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,SAAS,eAAe,CAAC,GAAY;IACpC,IAAI,EAAE,GAAG,GAAG,CAAC;IACb,GAAG,CAAC;QACH,IAAI,CAAC,CAAC,EAAE,YAAY,YAAY,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACzE,OAAO,KAAK,CAAC;QACd,CAAC;QACD,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;IACf,CAAC,QAAQ,EAAE,KAAK,SAAS,EAAE;IAC3B,OAAO,IAAI,CAAC;AACb,CAAC"}
|
package/dist/compose-strand.js
CHANGED
|
@@ -38,8 +38,8 @@ async function releaseOptimysticPlugin(plugin, createdNode) {
|
|
|
38
38
|
await plugin.offline.dispose();
|
|
39
39
|
// NOTE: the bridge's follower re-subscribes at the start of any transaction, so a write begun on
|
|
40
40
|
// this `Database` after release (before its owner closes it) subscribes again and nothing
|
|
41
|
-
// releases it. cadre-core
|
|
42
|
-
//
|
|
41
|
+
// releases it. cadre-core awaits `db.close()` before releasing, so no write can begin; the leak
|
|
42
|
+
// remains only for a host that releases first. If one shows it, have that host close first.
|
|
43
43
|
plugin.txnBridge.dispose();
|
|
44
44
|
const { collectionFactory } = plugin;
|
|
45
45
|
if (!createdNode) {
|
|
@@ -192,6 +192,13 @@ export async function composeStrand(db, options, platform) {
|
|
|
192
192
|
collectionFactory.registerLibp2pNode(networkName, node, coordinatedRepo);
|
|
193
193
|
log('Registered libp2p node with collection factory');
|
|
194
194
|
}
|
|
195
|
+
// The caller's reachability gate, under the key the factory derives from the vtab args set
|
|
196
|
+
// in step 4 (`${transactor}:${keyNetwork}`). Before hydrate, so no table opens on the node's
|
|
197
|
+
// own gate first.
|
|
198
|
+
if (options.cohortReachability) {
|
|
199
|
+
collectionFactory.registerCohortReachability(`${resolvedTransactor}:libp2p`, options.cohortReachability);
|
|
200
|
+
log('Registered the caller\'s cohort reachability gate for strand %s', strandId);
|
|
201
|
+
}
|
|
195
202
|
// 4. Set optimystic as default vtab so `declare schema` tables use it.
|
|
196
203
|
db.setDefaultVtabName('optimystic');
|
|
197
204
|
db.setDefaultVtabArgs({
|
|
@@ -254,9 +261,8 @@ export async function composeStrand(db, options, platform) {
|
|
|
254
261
|
// is a note for whoever first ships a migration that does.
|
|
255
262
|
//
|
|
256
263
|
// The exception: an apply refused by queued offline transactions, or because the strand's
|
|
257
|
-
// cohort could not be reached, does not fail the connect
|
|
258
|
-
//
|
|
259
|
-
// `applyAppSchemaOrDefer`).
|
|
264
|
+
// cohort could not be reached, does not fail the connect, and is retried as the queue drains
|
|
265
|
+
// or when a peer connects. See `applyAppSchemaOrDefer`, including what `db` holds meanwhile.
|
|
260
266
|
if (schema) {
|
|
261
267
|
log('Applying sApp schema for strand %s', strandId);
|
|
262
268
|
appSchemaApply = await applyAppSchemaOrDefer(db, schema, { queue: pluginResult.offline, peers }, released.signal);
|
|
@@ -285,9 +291,11 @@ export async function composeStrand(db, options, platform) {
|
|
|
285
291
|
...appSchemaApply,
|
|
286
292
|
async shutdown() {
|
|
287
293
|
log('Shutting down strand connection %s', strandId);
|
|
288
|
-
// NOTE: a deferred sApp schema apply already running is not awaited
|
|
289
|
-
//
|
|
290
|
-
// that
|
|
294
|
+
// NOTE: a deferred sApp schema apply already running is not awaited. A host that closes the
|
|
295
|
+
// `Database` first (cadre-core) has stopped it there, and `appSchema` settles `failed`; for one
|
|
296
|
+
// that does not, it runs on against the released plugin, Quereus unwinds it when it fails, and
|
|
297
|
+
// `appSchema` settles `cancelled`. If that ever leaves a catalog write landing after close,
|
|
298
|
+
// await `appSchema` here first.
|
|
291
299
|
released.abort();
|
|
292
300
|
offlineControllers.delete(db);
|
|
293
301
|
await releaseOptimysticPlugin(pluginResult, createdNode);
|
|
@@ -334,6 +342,9 @@ async function registerStrandPlugins(db, platform, strand) {
|
|
|
334
342
|
const storage = strand.storage;
|
|
335
343
|
pluginConfig.rawStorageFactory = () => storage;
|
|
336
344
|
}
|
|
345
|
+
// NOTE: `cost_profile` is left at upstream's default, `distributed` on the network transactor. A
|
|
346
|
+
// strand keeps each block on `DEFAULT_STRAND_CLUSTER_SIZE` machines, so in a larger party a read
|
|
347
|
+
// can leave the machine; a smaller one pays planner overhead, never a wrong result.
|
|
337
348
|
// NOTE: `networkCommitTimeoutMs` is left at upstream's default (five minutes); nothing was
|
|
338
349
|
// measured to choose another. A network-acknowledged commit made while transactions are queued
|
|
339
350
|
// (any `Strand` write, all of them tagged 'network') waits that long behind them holding
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose-strand.js","sourceRoot":"","sources":["../src/compose-strand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,8CAA8C,CAAC;AAS5E,OAAO,EAAE,qBAAqB,EAA+C,MAAM,iBAAiB,CAAC;AACrG,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,EAAE,oBAAo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M,CAAC,kBAAkB;QAC7C,mBAAmB,EAAE,QAAQ;QAC7B,oBAAoB,EAAE,MAAM,CAAC,WAAW;QACxC,YAAY,EAAE,MAAM,CAAC,WAAW;KAChC,CAAC;IACF,IAAI,MAAM,CAAC,kBAAkB,KAAK,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QAC7D,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,YAAY,CAAC,iBAAiB,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC;IAChD,CAAC;IACD,iGAAiG;IACjG,iGAAiG;IACjG,oFAAoF;IACpF,2FAA2F;IAC3F,+FAA+F;IAC/F,yFAAyF;IACzF,8FAA8F;IAC9F,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,YAAY,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IACvC,CAAC;IACD,mFAAmF;IACnF,qFAAqF;IACrF,+DAA+D;IAC/D,MAAM,YAAY,GAAG,gBAAgB,CACpC,EAAE,EACF,YAAiE,CAC5B,CAAC;IACvC,kBAAkB,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACrC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IACnD,OAAO,YAAY,CAAC;AACrB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { connectToStrand } from './connect.js';
|
|
2
2
|
export { offlineControllerOf } from './compose-strand.js';
|
|
3
|
-
export { applyAppSchema } from './app-schema.js';
|
|
3
|
+
export { applyAppSchema, AppSchemaRefusedError, appSchemaRefusalOf } from './app-schema.js';
|
|
4
4
|
export { createEmptyCollections, type CollectionRegistrySource } from './empty-collections.js';
|
|
5
5
|
export { MIN_CLUSTER_SIZE, COHORT_READ_DEADLINE_MS, CONTROL_REPLICATION_BREADTH, CONTROL_CLUSTER_POLICY, DEFAULT_STRAND_CLUSTER_SIZE, STRAND_CLUSTER_POLICY, resolveStrandClusterSize, resolveRepairYardstick, controlClusterPolicy, strandClusterPolicy } from './cluster-size.js';
|
|
6
6
|
export { wrapStorageWithCache, disposeStorageCache } from './cached-storage.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { connectToStrand } from './connect.js';
|
|
2
2
|
export { offlineControllerOf } from './compose-strand.js';
|
|
3
|
-
export { applyAppSchema } from './app-schema.js';
|
|
3
|
+
export { applyAppSchema, AppSchemaRefusedError, appSchemaRefusalOf } from './app-schema.js';
|
|
4
4
|
export { createEmptyCollections } from './empty-collections.js';
|
|
5
5
|
export { MIN_CLUSTER_SIZE, COHORT_READ_DEADLINE_MS, CONTROL_REPLICATION_BREADTH, CONTROL_CLUSTER_POLICY, DEFAULT_STRAND_CLUSTER_SIZE, STRAND_CLUSTER_POLICY, resolveStrandClusterSize, resolveRepairYardstick, controlClusterPolicy, strandClusterPolicy } from './cluster-size.js';
|
|
6
6
|
export { wrapStorageWithCache, disposeStorageCache } from './cached-storage.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAiC,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EACN,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAKhF,OAAO,EACN,yBAAyB,EACzB,mCAAmC,EACnC,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACnB,MAAM,8CAA8C,CAAC"}
|