@fluidframework/container-runtime 0.54.2 → 0.56.0-49831
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/.eslintrc.js +1 -1
- package/dist/blobManager.js +1 -1
- package/dist/blobManager.js.map +1 -1
- package/dist/containerRuntime.d.ts +20 -14
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +51 -58
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStoreContext.d.ts +57 -33
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +44 -54
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStores.d.ts +12 -2
- package/dist/dataStores.d.ts.map +1 -1
- package/dist/dataStores.js +106 -32
- package/dist/dataStores.js.map +1 -1
- package/dist/garbageCollection.d.ts +49 -14
- package/dist/garbageCollection.d.ts.map +1 -1
- package/dist/garbageCollection.js +122 -26
- package/dist/garbageCollection.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -17
- package/dist/index.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/runningSummarizer.d.ts.map +1 -1
- package/dist/runningSummarizer.js +2 -9
- package/dist/runningSummarizer.js.map +1 -1
- package/dist/summaryFormat.d.ts +2 -0
- package/dist/summaryFormat.d.ts.map +1 -1
- package/dist/summaryFormat.js +2 -4
- package/dist/summaryFormat.js.map +1 -1
- package/dist/summaryGenerator.d.ts +0 -5
- package/dist/summaryGenerator.d.ts.map +1 -1
- package/dist/summaryGenerator.js.map +1 -1
- package/dist/summaryManager.d.ts +1 -0
- package/dist/summaryManager.d.ts.map +1 -1
- package/dist/summaryManager.js +7 -2
- package/dist/summaryManager.js.map +1 -1
- package/garbageCollection.md +33 -0
- package/lib/blobManager.js +1 -1
- package/lib/blobManager.js.map +1 -1
- package/lib/containerRuntime.d.ts +20 -14
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +51 -58
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStoreContext.d.ts +57 -33
- package/lib/dataStoreContext.d.ts.map +1 -1
- package/lib/dataStoreContext.js +42 -52
- package/lib/dataStoreContext.js.map +1 -1
- package/lib/dataStores.d.ts +12 -2
- package/lib/dataStores.d.ts.map +1 -1
- package/lib/dataStores.js +107 -33
- package/lib/dataStores.js.map +1 -1
- package/lib/garbageCollection.d.ts +49 -14
- package/lib/garbageCollection.d.ts.map +1 -1
- package/lib/garbageCollection.js +122 -26
- package/lib/garbageCollection.js.map +1 -1
- package/lib/index.d.ts +7 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -7
- package/lib/index.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/runningSummarizer.d.ts.map +1 -1
- package/lib/runningSummarizer.js +2 -9
- package/lib/runningSummarizer.js.map +1 -1
- package/lib/summaryFormat.d.ts +2 -0
- package/lib/summaryFormat.d.ts.map +1 -1
- package/lib/summaryFormat.js +2 -4
- package/lib/summaryFormat.js.map +1 -1
- package/lib/summaryGenerator.d.ts +0 -5
- package/lib/summaryGenerator.d.ts.map +1 -1
- package/lib/summaryGenerator.js.map +1 -1
- package/lib/summaryManager.d.ts +1 -0
- package/lib/summaryManager.d.ts.map +1 -1
- package/lib/summaryManager.js +7 -2
- package/lib/summaryManager.js.map +1 -1
- package/package.json +24 -23
- package/src/blobManager.ts +1 -1
- package/src/containerRuntime.ts +69 -65
- package/src/dataStoreContext.ts +105 -129
- package/src/dataStores.ts +118 -68
- package/src/garbageCollection.ts +156 -31
- package/src/index.ts +52 -6
- package/src/packageVersion.ts +1 -1
- package/src/runningSummarizer.ts +2 -7
- package/src/summaryFormat.ts +4 -4
- package/src/summaryGenerator.ts +0 -5
- package/src/summaryManager.ts +9 -3
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { IDisposable, ITelemetryLogger } from "@fluidframework/common-definitions";
|
|
6
6
|
import { FluidObject, IRequest, IResponse, IFluidHandle } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { IAudience, IDeltaManager,
|
|
7
|
+
import { IAudience, IDeltaManager, BindState, AttachState, ILoaderOptions } from "@fluidframework/container-definitions";
|
|
8
8
|
import { Deferred, TypedEventEmitter } from "@fluidframework/common-utils";
|
|
9
9
|
import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
10
10
|
import { IClientDetails, IDocumentMessage, IQuorumClients, ISequencedDocumentMessage, ISnapshotTree, ITreeEntry } from "@fluidframework/protocol-definitions";
|
|
11
11
|
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions";
|
|
12
|
-
import { CreateChildSummarizerNodeFn, CreateChildSummarizerNodeParam, IAttachMessage, IFluidDataStoreChannel, IFluidDataStoreContext, IFluidDataStoreContextDetached, IFluidDataStoreContextEvents, IFluidDataStoreRegistry, IGarbageCollectionData, IGarbageCollectionSummaryDetails, IInboundSignalMessage, IProvideFluidDataStoreFactory, ISummarizeResult, ISummarizerNodeWithGC, SummarizeInternalFn } from "@fluidframework/runtime-definitions";
|
|
12
|
+
import { CreateChildSummarizerNodeFn, CreateChildSummarizerNodeParam, IAttachMessage, IFluidDataStoreChannel, IFluidDataStoreContext, IFluidDataStoreContextDetached, IFluidDataStoreContextEvents, IFluidDataStoreRegistry, IGarbageCollectionData, IGarbageCollectionDetailsBase, IGarbageCollectionSummaryDetails, IInboundSignalMessage, IProvideFluidDataStoreFactory, ISummarizeResult, ISummarizerNodeWithGC, SummarizeInternalFn } from "@fluidframework/runtime-definitions";
|
|
13
13
|
import { ContainerRuntime } from "./containerRuntime";
|
|
14
14
|
export declare function createAttributesBlob(pkg: readonly string[], isRootDataStore: boolean, disableIsolatedChannels: boolean): ITreeEntry;
|
|
15
15
|
interface ISnapshotDetails {
|
|
@@ -21,18 +21,40 @@ interface ISnapshotDetails {
|
|
|
21
21
|
isRootDataStore: boolean;
|
|
22
22
|
snapshot?: ISnapshotTree;
|
|
23
23
|
}
|
|
24
|
+
/** Properties necessary for creating a FluidDataStoreContext */
|
|
25
|
+
export interface IFluidDataStoreContextProps {
|
|
26
|
+
readonly id: string;
|
|
27
|
+
readonly runtime: ContainerRuntime;
|
|
28
|
+
readonly storage: IDocumentStorageService;
|
|
29
|
+
readonly scope: FluidObject;
|
|
30
|
+
readonly createSummarizerNodeFn: CreateChildSummarizerNodeFn;
|
|
31
|
+
readonly writeGCDataAtRoot: boolean;
|
|
32
|
+
readonly disableIsolatedChannels: boolean;
|
|
33
|
+
readonly pkg?: Readonly<string[]>;
|
|
34
|
+
}
|
|
35
|
+
/** Properties necessary for creating a local FluidDataStoreContext */
|
|
36
|
+
export interface ILocalFluidDataStoreContextProps extends IFluidDataStoreContextProps {
|
|
37
|
+
readonly pkg: Readonly<string[]> | undefined;
|
|
38
|
+
readonly snapshotTree: ISnapshotTree | undefined;
|
|
39
|
+
readonly isRootDataStore: boolean | undefined;
|
|
40
|
+
readonly bindChannelFn: (channel: IFluidDataStoreChannel) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated 0.16 Issue #1635, #3631
|
|
43
|
+
*/
|
|
44
|
+
readonly createProps?: any;
|
|
45
|
+
}
|
|
46
|
+
/** Properties necessary for creating a remote FluidDataStoreContext */
|
|
47
|
+
export interface IRemoteFluidDataStoreContextProps extends IFluidDataStoreContextProps {
|
|
48
|
+
readonly snapshotTree: ISnapshotTree | string | undefined;
|
|
49
|
+
readonly getBaseGCDetails: () => Promise<IGarbageCollectionDetailsBase | undefined>;
|
|
50
|
+
}
|
|
24
51
|
/**
|
|
25
52
|
* Represents the context for the store. This context is passed to the store runtime.
|
|
26
53
|
*/
|
|
27
54
|
export declare abstract class FluidDataStoreContext extends TypedEventEmitter<IFluidDataStoreContextEvents> implements IFluidDataStoreContext, IDisposable {
|
|
28
|
-
private readonly _containerRuntime;
|
|
29
|
-
readonly id: string;
|
|
30
55
|
private readonly existing;
|
|
31
|
-
readonly storage: IDocumentStorageService;
|
|
32
|
-
readonly scope: FluidObject | FluidObject;
|
|
33
56
|
private bindState;
|
|
34
57
|
readonly isLocalDataStore: boolean;
|
|
35
|
-
protected pkg?: readonly string[] | undefined;
|
|
36
58
|
get packagePath(): readonly string[];
|
|
37
59
|
get options(): ILoaderOptions;
|
|
38
60
|
get clientId(): string | undefined;
|
|
@@ -49,9 +71,6 @@ export declare abstract class FluidDataStoreContext extends TypedEventEmitter<IF
|
|
|
49
71
|
get attachState(): AttachState;
|
|
50
72
|
get IFluidDataStoreRegistry(): IFluidDataStoreRegistry | undefined;
|
|
51
73
|
isRoot(): Promise<boolean>;
|
|
52
|
-
protected get disableIsolatedChannels(): boolean;
|
|
53
|
-
/** Tells whether GC data will be written at the root of the summary tree. If so, data store should not write it. */
|
|
54
|
-
protected get writeGCDataAtRoot(): boolean;
|
|
55
74
|
protected registry: IFluidDataStoreRegistry | undefined;
|
|
56
75
|
protected detachedRuntimeCreation: boolean;
|
|
57
76
|
readonly bindToContext: () => void;
|
|
@@ -66,7 +85,14 @@ export declare abstract class FluidDataStoreContext extends TypedEventEmitter<IF
|
|
|
66
85
|
private readonly thresholdOpsCounter;
|
|
67
86
|
private static readonly pendingOpsCountThreshold;
|
|
68
87
|
private lastUsedState;
|
|
69
|
-
|
|
88
|
+
readonly id: string;
|
|
89
|
+
private readonly _containerRuntime;
|
|
90
|
+
readonly storage: IDocumentStorageService;
|
|
91
|
+
readonly scope: FluidObject;
|
|
92
|
+
private readonly writeGCDataAtRoot;
|
|
93
|
+
protected readonly disableIsolatedChannels: boolean;
|
|
94
|
+
protected pkg?: readonly string[];
|
|
95
|
+
constructor(props: IFluidDataStoreContextProps, existing: boolean, bindState: BindState, isLocalDataStore: boolean, bindChannelFn: (channel: IFluidDataStoreChannel) => void);
|
|
70
96
|
dispose(): void;
|
|
71
97
|
private rejectDeferredRealize;
|
|
72
98
|
realize(): Promise<IFluidDataStoreChannel>;
|
|
@@ -151,7 +177,6 @@ export declare abstract class FluidDataStoreContext extends TypedEventEmitter<IF
|
|
|
151
177
|
*/
|
|
152
178
|
setChannelDirty(address: string): void;
|
|
153
179
|
submitSignal(type: string, content: any): void;
|
|
154
|
-
raiseContainerWarning(warning: ContainerWarning): void;
|
|
155
180
|
protected bindRuntime(channel: IFluidDataStoreChannel): void;
|
|
156
181
|
getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
|
|
157
182
|
abstract generateAttachMessage(): IAttachMessage;
|
|
@@ -162,22 +187,29 @@ export declare abstract class FluidDataStoreContext extends TypedEventEmitter<IF
|
|
|
162
187
|
* It will be removed, as the source of truth for this flag will be the aliasing blob.
|
|
163
188
|
*/
|
|
164
189
|
abstract setRoot(): void;
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated - Renamed to getBaseGCDetails().
|
|
192
|
+
*/
|
|
165
193
|
abstract getInitialGCSummaryDetails(): Promise<IGarbageCollectionSummaryDetails>;
|
|
194
|
+
abstract getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
|
|
166
195
|
reSubmit(contents: any, localOpMetadata: unknown): void;
|
|
167
196
|
applyStashedOp(contents: any): Promise<unknown>;
|
|
168
197
|
private verifyNotClosed;
|
|
169
|
-
getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean | undefined) => Promise<IGarbageCollectionData>,
|
|
198
|
+
getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean | undefined) => Promise<IGarbageCollectionData>, getBaseGCDetailsFn: () => Promise<IGarbageCollectionDetailsBase>) => ISummarizerNodeWithGC;
|
|
170
199
|
uploadBlob(blob: ArrayBufferLike): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
171
200
|
}
|
|
172
|
-
export declare class
|
|
173
|
-
private readonly initSnapshotValue;
|
|
174
|
-
private readonly getBaseSummaryGCDetails;
|
|
201
|
+
export declare class RemoteFluidDataStoreContext extends FluidDataStoreContext {
|
|
175
202
|
private isRootDataStore;
|
|
176
|
-
|
|
203
|
+
private readonly initSnapshotValue;
|
|
204
|
+
private readonly baseGCDetailsP;
|
|
205
|
+
constructor(props: IRemoteFluidDataStoreContextProps);
|
|
177
206
|
private readonly initialSnapshotDetailsP;
|
|
178
|
-
private readonly gcDetailsInInitialSummaryP;
|
|
179
207
|
protected getInitialSnapshotDetails(): Promise<ISnapshotDetails>;
|
|
208
|
+
/**
|
|
209
|
+
* @deprecated - Renamed to getBaseGCDetails.
|
|
210
|
+
*/
|
|
180
211
|
getInitialGCSummaryDetails(): Promise<IGarbageCollectionSummaryDetails>;
|
|
212
|
+
getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
|
|
181
213
|
generateAttachMessage(): IAttachMessage;
|
|
182
214
|
/**
|
|
183
215
|
* @deprecated - Sets the datastore as root, for aliasing purposes: #7948
|
|
@@ -192,19 +224,15 @@ export declare class RemotedFluidDataStoreContext extends FluidDataStoreContext
|
|
|
192
224
|
export declare class LocalFluidDataStoreContextBase extends FluidDataStoreContext {
|
|
193
225
|
private readonly snapshotTree;
|
|
194
226
|
protected isRootDataStore: boolean | undefined;
|
|
195
|
-
|
|
196
|
-
* @deprecated 0.16 Issue #1635, #3631
|
|
197
|
-
*/
|
|
198
|
-
readonly createProps?: any;
|
|
199
|
-
constructor(id: string, pkg: Readonly<string[]> | undefined, runtime: ContainerRuntime, storage: IDocumentStorageService, scope: FluidObject, createSummarizerNode: CreateChildSummarizerNodeFn, bindChannel: (channel: IFluidDataStoreChannel) => void, snapshotTree: ISnapshotTree | undefined, isRootDataStore: boolean | undefined,
|
|
200
|
-
/**
|
|
201
|
-
* @deprecated 0.16 Issue #1635, #3631
|
|
202
|
-
*/
|
|
203
|
-
createProps?: any);
|
|
227
|
+
constructor(props: ILocalFluidDataStoreContextProps);
|
|
204
228
|
private attachListeners;
|
|
205
229
|
generateAttachMessage(): IAttachMessage;
|
|
206
230
|
protected getInitialSnapshotDetails(): Promise<ISnapshotDetails>;
|
|
231
|
+
/**
|
|
232
|
+
* @deprecated - Renamed to getBaseGCDetails.
|
|
233
|
+
*/
|
|
207
234
|
getInitialGCSummaryDetails(): Promise<IGarbageCollectionSummaryDetails>;
|
|
235
|
+
getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
|
|
208
236
|
/**
|
|
209
237
|
* @deprecated - Sets the datastore as root, for aliasing purposes: #7948
|
|
210
238
|
* This method should not be used outside of the aliasing context.
|
|
@@ -219,11 +247,7 @@ export declare class LocalFluidDataStoreContextBase extends FluidDataStoreContex
|
|
|
219
247
|
* Runtime is created using data store factory that is associated with this context.
|
|
220
248
|
*/
|
|
221
249
|
export declare class LocalFluidDataStoreContext extends LocalFluidDataStoreContextBase {
|
|
222
|
-
constructor(
|
|
223
|
-
/**
|
|
224
|
-
* @deprecated 0.16 Issue #1635, #3631
|
|
225
|
-
*/
|
|
226
|
-
createProps?: any);
|
|
250
|
+
constructor(props: ILocalFluidDataStoreContextProps);
|
|
227
251
|
}
|
|
228
252
|
/**
|
|
229
253
|
* Detached context. Data Store runtime will be attached to it by attachRuntime() call
|
|
@@ -232,7 +256,7 @@ export declare class LocalFluidDataStoreContext extends LocalFluidDataStoreConte
|
|
|
232
256
|
* Attachment process provides all missing parts - package path, data store runtime, and data store factory
|
|
233
257
|
*/
|
|
234
258
|
export declare class LocalDetachedFluidDataStoreContext extends LocalFluidDataStoreContextBase implements IFluidDataStoreContextDetached {
|
|
235
|
-
constructor(
|
|
259
|
+
constructor(props: ILocalFluidDataStoreContextProps);
|
|
236
260
|
attachRuntime(registry: IProvideFluidDataStoreFactory, dataStoreRuntime: IFluidDataStoreChannel): Promise<void>;
|
|
237
261
|
protected getInitialSnapshotDetails(): Promise<ISnapshotDetails>;
|
|
238
262
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStoreContext.d.ts","sourceRoot":"","sources":["../src/dataStoreContext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACH,WAAW,EACX,QAAQ,EACR,SAAS,EACT,YAAY,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACH,SAAS,EACT,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"dataStoreContext.d.ts","sourceRoot":"","sources":["../src/dataStoreContext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACH,WAAW,EACX,QAAQ,EACR,SAAS,EACT,YAAY,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACH,SAAS,EACT,aAAa,EACb,SAAS,EACT,WAAW,EACX,cAAc,EACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAEH,QAAQ,EAER,iBAAiB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,OAAO,EACH,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,aAAa,EACb,UAAU,EACb,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACH,iBAAiB,EACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAEH,2BAA2B,EAC3B,8BAA8B,EAG9B,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,gCAAgC,EAChC,qBAAqB,EACrB,6BAA6B,EAE7B,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACtB,MAA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B,yBAAyB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IA+BtE;;OAEG;IACU,0BAA0B,IAAI,OAAO,CAAC,gCAAgC,CAAC;IAKvE,gBAAgB,IAAI,OAAO,CAAC,6BAA6B,CAAC;IAKvE;;;;OAIG;IACI,OAAO,IAAI,IAAI;CAGzB;AAED;;;;;GAKG;AACH,qBAAa,0BAA2B,SAAQ,8BAA8B;gBAC9D,KAAK,EAAE,gCAAgC;CAGtD;AAED;;;;;GAKG;AACH,qBAAa,kCACT,SAAQ,8BACR,YAAW,8BAA8B;gBAE7B,KAAK,EAAE,gCAAgC;IAKtC,aAAa,CACtB,QAAQ,EAAE,6BAA6B,EACvC,gBAAgB,EAAE,sBAAsB;cAuB5B,yBAAyB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAMzE"}
|
package/dist/dataStoreContext.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.LocalDetachedFluidDataStoreContext = exports.LocalFluidDataStoreContext = exports.LocalFluidDataStoreContextBase = exports.
|
|
7
|
+
exports.LocalDetachedFluidDataStoreContext = exports.LocalFluidDataStoreContext = exports.LocalFluidDataStoreContextBase = exports.RemoteFluidDataStoreContext = exports.FluidDataStoreContext = exports.createAttributesBlob = void 0;
|
|
8
8
|
const container_definitions_1 = require("@fluidframework/container-definitions");
|
|
9
9
|
const common_utils_1 = require("@fluidframework/common-utils");
|
|
10
10
|
const driver_utils_1 = require("@fluidframework/driver-utils");
|
|
@@ -35,34 +35,36 @@ exports.createAttributesBlob = createAttributesBlob;
|
|
|
35
35
|
* Represents the context for the store. This context is passed to the store runtime.
|
|
36
36
|
*/
|
|
37
37
|
class FluidDataStoreContext extends common_utils_1.TypedEventEmitter {
|
|
38
|
-
constructor(
|
|
38
|
+
constructor(props, existing, bindState, isLocalDataStore, bindChannelFn) {
|
|
39
39
|
super();
|
|
40
|
-
this._containerRuntime = _containerRuntime;
|
|
41
|
-
this.id = id;
|
|
42
40
|
this.existing = existing;
|
|
43
|
-
this.storage = storage;
|
|
44
|
-
this.scope = scope;
|
|
45
41
|
this.bindState = bindState;
|
|
46
42
|
this.isLocalDataStore = isLocalDataStore;
|
|
47
|
-
this.pkg = pkg;
|
|
48
43
|
this._disposed = false;
|
|
49
44
|
this.detachedRuntimeCreation = false;
|
|
50
45
|
this.loaded = false;
|
|
51
46
|
this.pending = [];
|
|
47
|
+
this._containerRuntime = props.runtime;
|
|
48
|
+
this.id = props.id;
|
|
49
|
+
this.storage = props.storage;
|
|
50
|
+
this.scope = props.scope;
|
|
51
|
+
this.writeGCDataAtRoot = props.writeGCDataAtRoot;
|
|
52
|
+
this.disableIsolatedChannels = props.disableIsolatedChannels;
|
|
53
|
+
this.pkg = props.pkg;
|
|
52
54
|
// URIs use slashes as delimiters. Handles use URIs.
|
|
53
55
|
// Thus having slashes in types almost guarantees trouble down the road!
|
|
54
|
-
common_utils_1.assert(id.indexOf("/") === -1, 0x13a /* `Data store ID contains slash: ${id}` */);
|
|
56
|
+
common_utils_1.assert(this.id.indexOf("/") === -1, 0x13a /* `Data store ID contains slash: ${id}` */);
|
|
55
57
|
this._attachState = this.containerRuntime.attachState !== container_definitions_1.AttachState.Detached && this.existing ?
|
|
56
58
|
this.containerRuntime.attachState : container_definitions_1.AttachState.Detached;
|
|
57
59
|
this.bindToContext = () => {
|
|
58
60
|
common_utils_1.assert(this.bindState === container_definitions_1.BindState.NotBound, 0x13b /* "datastore context is already in bound state" */);
|
|
59
61
|
this.bindState = container_definitions_1.BindState.Binding;
|
|
60
62
|
common_utils_1.assert(this.channel !== undefined, 0x13c /* "undefined channel on datastore context" */);
|
|
61
|
-
|
|
63
|
+
bindChannelFn(this.channel);
|
|
62
64
|
this.bindState = container_definitions_1.BindState.Bound;
|
|
63
65
|
};
|
|
64
66
|
const thisSummarizeInternal = async (fullTree, trackState) => this.summarizeInternal(fullTree, trackState);
|
|
65
|
-
this.summarizerNode =
|
|
67
|
+
this.summarizerNode = props.createSummarizerNodeFn(thisSummarizeInternal, async (fullGC) => this.getGCDataInternal(fullGC), async () => this.getBaseGCDetails());
|
|
66
68
|
this.subLogger = telemetry_utils_1.ChildLogger.create(this.logger, "FluidDataStoreContext");
|
|
67
69
|
this.thresholdOpsCounter = new telemetry_utils_1.ThresholdCounter(FluidDataStoreContext.pendingOpsCountThreshold, this.subLogger);
|
|
68
70
|
}
|
|
@@ -110,13 +112,6 @@ class FluidDataStoreContext extends common_utils_1.TypedEventEmitter {
|
|
|
110
112
|
async isRoot() {
|
|
111
113
|
return (await this.getInitialSnapshotDetails()).isRootDataStore;
|
|
112
114
|
}
|
|
113
|
-
get disableIsolatedChannels() {
|
|
114
|
-
return this._containerRuntime.disableIsolatedChannels;
|
|
115
|
-
}
|
|
116
|
-
/** Tells whether GC data will be written at the root of the summary tree. If so, data store should not write it. */
|
|
117
|
-
get writeGCDataAtRoot() {
|
|
118
|
-
return this._containerRuntime.writeGCDataAtRoot;
|
|
119
|
-
}
|
|
120
115
|
dispose() {
|
|
121
116
|
if (this._disposed) {
|
|
122
117
|
return;
|
|
@@ -383,10 +378,6 @@ class FluidDataStoreContext extends common_utils_1.TypedEventEmitter {
|
|
|
383
378
|
common_utils_1.assert(!!this.channel, 0x147 /* "Channel must exist on submitting signal" */);
|
|
384
379
|
return this._containerRuntime.submitDataStoreSignal(this.id, type, content);
|
|
385
380
|
}
|
|
386
|
-
// @deprecated Warnings are being deprecated
|
|
387
|
-
raiseContainerWarning(warning) {
|
|
388
|
-
this.containerRuntime.raiseContainerWarning(warning);
|
|
389
|
-
}
|
|
390
381
|
bindRuntime(channel) {
|
|
391
382
|
var _a;
|
|
392
383
|
if (this.channel) {
|
|
@@ -451,9 +442,9 @@ class FluidDataStoreContext extends common_utils_1.TypedEventEmitter {
|
|
|
451
442
|
}
|
|
452
443
|
}
|
|
453
444
|
getCreateChildSummarizerNodeFn(id, createParam) {
|
|
454
|
-
return (summarizeInternal, getGCDataFn,
|
|
445
|
+
return (summarizeInternal, getGCDataFn, getBaseGCDetailsFn) => this.summarizerNode.createChild(summarizeInternal, id, createParam,
|
|
455
446
|
// DDS will not create failure summaries
|
|
456
|
-
{ throwOnFailure: true }, getGCDataFn,
|
|
447
|
+
{ throwOnFailure: true }, getGCDataFn, getBaseGCDetailsFn);
|
|
457
448
|
}
|
|
458
449
|
async uploadBlob(blob) {
|
|
459
450
|
return this.containerRuntime.uploadBlob(blob);
|
|
@@ -461,13 +452,11 @@ class FluidDataStoreContext extends common_utils_1.TypedEventEmitter {
|
|
|
461
452
|
}
|
|
462
453
|
exports.FluidDataStoreContext = FluidDataStoreContext;
|
|
463
454
|
FluidDataStoreContext.pendingOpsCountThreshold = 1000;
|
|
464
|
-
class
|
|
465
|
-
constructor(
|
|
466
|
-
super(
|
|
455
|
+
class RemoteFluidDataStoreContext extends FluidDataStoreContext {
|
|
456
|
+
constructor(props) {
|
|
457
|
+
super(props, true /* existing */, container_definitions_1.BindState.Bound, false /* isLocalDataStore */, () => {
|
|
467
458
|
throw new Error("Already attached");
|
|
468
|
-
}
|
|
469
|
-
this.initSnapshotValue = initSnapshotValue;
|
|
470
|
-
this.getBaseSummaryGCDetails = getBaseSummaryGCDetails;
|
|
459
|
+
});
|
|
471
460
|
this.initialSnapshotDetailsP = new common_utils_1.LazyPromise(async () => {
|
|
472
461
|
var _a, _b;
|
|
473
462
|
let tree;
|
|
@@ -524,16 +513,23 @@ class RemotedFluidDataStoreContext extends FluidDataStoreContext {
|
|
|
524
513
|
isRootDataStore,
|
|
525
514
|
};
|
|
526
515
|
});
|
|
527
|
-
this.
|
|
516
|
+
this.initSnapshotValue = props.snapshotTree;
|
|
517
|
+
this.baseGCDetailsP = new common_utils_1.LazyPromise(async () => {
|
|
528
518
|
var _a;
|
|
529
|
-
return (_a = (await
|
|
519
|
+
return (_a = (await props.getBaseGCDetails())) !== null && _a !== void 0 ? _a : {};
|
|
530
520
|
});
|
|
531
521
|
}
|
|
532
522
|
async getInitialSnapshotDetails() {
|
|
533
523
|
return this.initialSnapshotDetailsP;
|
|
534
524
|
}
|
|
525
|
+
/**
|
|
526
|
+
* @deprecated - Renamed to getBaseGCDetails.
|
|
527
|
+
*/
|
|
535
528
|
async getInitialGCSummaryDetails() {
|
|
536
|
-
return this.
|
|
529
|
+
return this.getBaseGCDetails();
|
|
530
|
+
}
|
|
531
|
+
async getBaseGCDetails() {
|
|
532
|
+
return this.baseGCDetailsP;
|
|
537
533
|
}
|
|
538
534
|
generateAttachMessage() {
|
|
539
535
|
throw new Error("Cannot attach remote store");
|
|
@@ -547,20 +543,15 @@ class RemotedFluidDataStoreContext extends FluidDataStoreContext {
|
|
|
547
543
|
this.isRootDataStore = true;
|
|
548
544
|
}
|
|
549
545
|
}
|
|
550
|
-
exports.
|
|
546
|
+
exports.RemoteFluidDataStoreContext = RemoteFluidDataStoreContext;
|
|
551
547
|
/**
|
|
552
548
|
* Base class for detached & attached context classes
|
|
553
549
|
*/
|
|
554
550
|
class LocalFluidDataStoreContextBase extends FluidDataStoreContext {
|
|
555
|
-
constructor(
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
createProps) {
|
|
560
|
-
super(runtime, id, snapshotTree !== undefined ? true : false, storage, scope, createSummarizerNode, snapshotTree ? container_definitions_1.BindState.Bound : container_definitions_1.BindState.NotBound, true, bindChannel, pkg);
|
|
561
|
-
this.snapshotTree = snapshotTree;
|
|
562
|
-
this.isRootDataStore = isRootDataStore;
|
|
563
|
-
this.createProps = createProps;
|
|
551
|
+
constructor(props) {
|
|
552
|
+
super(props, props.snapshotTree !== undefined ? true : false /* existing */, props.snapshotTree ? container_definitions_1.BindState.Bound : container_definitions_1.BindState.NotBound, true /* isLocalDataStore */, props.bindChannelFn);
|
|
553
|
+
this.snapshotTree = props.snapshotTree;
|
|
554
|
+
this.isRootDataStore = props.isRootDataStore;
|
|
564
555
|
this.attachListeners();
|
|
565
556
|
}
|
|
566
557
|
attachListeners() {
|
|
@@ -585,10 +576,6 @@ class LocalFluidDataStoreContextBase extends FluidDataStoreContext {
|
|
|
585
576
|
// Add data store's attributes to the summary.
|
|
586
577
|
const attributes = createAttributes(this.pkg, this.isRootDataStore, this.disableIsolatedChannels);
|
|
587
578
|
runtime_utils_1.addBlobToSummary(summarizeResult, summaryFormat_1.dataStoreAttributesBlobName, JSON.stringify(attributes));
|
|
588
|
-
// Add GC data to the summary if it's not written at the root.
|
|
589
|
-
if (!this.writeGCDataAtRoot) {
|
|
590
|
-
runtime_utils_1.addBlobToSummary(summarizeResult, runtime_definitions_1.gcBlobKey, JSON.stringify(this.summarizerNode.getGCSummaryDetails()));
|
|
591
|
-
}
|
|
592
579
|
// Attach message needs the summary in ITree format. Convert the ISummaryTree into an ITree.
|
|
593
580
|
const snapshot = runtime_utils_1.convertSummaryTreeToITree(summarizeResult.summary);
|
|
594
581
|
const message = {
|
|
@@ -626,10 +613,17 @@ class LocalFluidDataStoreContextBase extends FluidDataStoreContext {
|
|
|
626
613
|
isRootDataStore: this.isRootDataStore,
|
|
627
614
|
};
|
|
628
615
|
}
|
|
616
|
+
/**
|
|
617
|
+
* @deprecated - Renamed to getBaseGCDetails.
|
|
618
|
+
*/
|
|
629
619
|
async getInitialGCSummaryDetails() {
|
|
630
620
|
// Local data store does not have initial summary.
|
|
631
621
|
return {};
|
|
632
622
|
}
|
|
623
|
+
async getBaseGCDetails() {
|
|
624
|
+
// Local data store does not have initial summary.
|
|
625
|
+
return {};
|
|
626
|
+
}
|
|
633
627
|
/**
|
|
634
628
|
* @deprecated - Sets the datastore as root, for aliasing purposes: #7948
|
|
635
629
|
* This method should not be used outside of the aliasing context.
|
|
@@ -647,12 +641,8 @@ exports.LocalFluidDataStoreContextBase = LocalFluidDataStoreContextBase;
|
|
|
647
641
|
* Runtime is created using data store factory that is associated with this context.
|
|
648
642
|
*/
|
|
649
643
|
class LocalFluidDataStoreContext extends LocalFluidDataStoreContextBase {
|
|
650
|
-
constructor(
|
|
651
|
-
|
|
652
|
-
* @deprecated 0.16 Issue #1635, #3631
|
|
653
|
-
*/
|
|
654
|
-
createProps) {
|
|
655
|
-
super(id, pkg, runtime, storage, scope, createSummarizerNode, bindChannel, snapshotTree, isRootDataStore, createProps);
|
|
644
|
+
constructor(props) {
|
|
645
|
+
super(props);
|
|
656
646
|
}
|
|
657
647
|
}
|
|
658
648
|
exports.LocalFluidDataStoreContext = LocalFluidDataStoreContext;
|
|
@@ -663,8 +653,8 @@ exports.LocalFluidDataStoreContext = LocalFluidDataStoreContext;
|
|
|
663
653
|
* Attachment process provides all missing parts - package path, data store runtime, and data store factory
|
|
664
654
|
*/
|
|
665
655
|
class LocalDetachedFluidDataStoreContext extends LocalFluidDataStoreContextBase {
|
|
666
|
-
constructor(
|
|
667
|
-
super(
|
|
656
|
+
constructor(props) {
|
|
657
|
+
super(props);
|
|
668
658
|
this.detachedRuntimeCreation = true;
|
|
669
659
|
}
|
|
670
660
|
async attachRuntime(registry, dataStoreRuntime) {
|