@fluidframework/container-runtime 1.1.0 → 1.2.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/dist/containerRuntime.d.ts +1 -1
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +8 -8
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStore.d.ts +2 -2
- package/dist/dataStore.d.ts.map +1 -1
- package/dist/dataStore.js +2 -2
- package/dist/dataStore.js.map +1 -1
- package/dist/dataStoreContext.d.ts +4 -4
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStores.d.ts +2 -2
- package/dist/dataStores.d.ts.map +1 -1
- package/dist/dataStores.js +6 -5
- package/dist/dataStores.js.map +1 -1
- package/dist/garbageCollection.d.ts +33 -14
- package/dist/garbageCollection.d.ts.map +1 -1
- package/dist/garbageCollection.js +243 -122
- package/dist/garbageCollection.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/summarizerTypes.d.ts +5 -2
- package/dist/summarizerTypes.d.ts.map +1 -1
- package/dist/summarizerTypes.js.map +1 -1
- package/dist/summaryFormat.d.ts +6 -3
- package/dist/summaryFormat.d.ts.map +1 -1
- package/dist/summaryFormat.js +6 -3
- package/dist/summaryFormat.js.map +1 -1
- package/dist/summaryGenerator.d.ts.map +1 -1
- package/dist/summaryGenerator.js +0 -1
- package/dist/summaryGenerator.js.map +1 -1
- package/garbageCollection.md +7 -7
- package/lib/containerRuntime.d.ts +1 -1
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +9 -9
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStore.d.ts +2 -2
- package/lib/dataStore.d.ts.map +1 -1
- package/lib/dataStore.js +2 -2
- package/lib/dataStore.js.map +1 -1
- package/lib/dataStoreContext.d.ts +4 -4
- package/lib/dataStoreContext.d.ts.map +1 -1
- package/lib/dataStoreContext.js.map +1 -1
- package/lib/dataStores.d.ts +2 -2
- package/lib/dataStores.d.ts.map +1 -1
- package/lib/dataStores.js +6 -5
- package/lib/dataStores.js.map +1 -1
- package/lib/garbageCollection.d.ts +33 -14
- package/lib/garbageCollection.d.ts.map +1 -1
- package/lib/garbageCollection.js +242 -121
- package/lib/garbageCollection.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/summarizerTypes.d.ts +5 -2
- package/lib/summarizerTypes.d.ts.map +1 -1
- package/lib/summarizerTypes.js.map +1 -1
- package/lib/summaryFormat.d.ts +6 -3
- package/lib/summaryFormat.d.ts.map +1 -1
- package/lib/summaryFormat.js +6 -3
- package/lib/summaryFormat.js.map +1 -1
- package/lib/summaryGenerator.d.ts.map +1 -1
- package/lib/summaryGenerator.js +0 -1
- package/lib/summaryGenerator.js.map +1 -1
- package/package.json +16 -16
- package/src/containerRuntime.ts +60 -58
- package/src/dataStore.ts +4 -4
- package/src/dataStoreContext.ts +4 -4
- package/src/dataStores.ts +5 -5
- package/src/garbageCollection.ts +308 -167
- package/src/packageVersion.ts +1 -1
- package/src/summarizerTypes.ts +6 -3
- package/src/summaryFormat.ts +6 -3
- package/src/summaryGenerator.ts +0 -2
package/src/packageVersion.ts
CHANGED
package/src/summarizerTypes.ts
CHANGED
|
@@ -152,7 +152,7 @@ export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
|
152
152
|
readonly gcBlobNodeCount?: number;
|
|
153
153
|
/** Sum of the sizes of all op contents since the last summary */
|
|
154
154
|
readonly opsSizesSinceLastSummary: number;
|
|
155
|
-
/** Number of non-system ops since the last summary @
|
|
155
|
+
/** Number of non-system ops since the last summary. See {@link @fluidframework/protocol-base#isSystemMessage} */
|
|
156
156
|
readonly nonSystemOpsSinceLastSummary: number;
|
|
157
157
|
/** The summary number for a container's summary. Incremented on summaries throughout its lifetime. */
|
|
158
158
|
readonly summaryNumber: number;
|
|
@@ -300,7 +300,7 @@ export interface ISummarizerEvents extends IEvent {
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
export interface ISummarizer extends
|
|
303
|
-
IEventProvider<ISummarizerEvents>, IFluidLoadable, Partial<IProvideSummarizer>{
|
|
303
|
+
IEventProvider<ISummarizerEvents>, IFluidLoadable, Partial<IProvideSummarizer> {
|
|
304
304
|
/*
|
|
305
305
|
* Asks summarizer to move to exit.
|
|
306
306
|
* Summarizer will finish current processes, which may take a while.
|
|
@@ -428,7 +428,10 @@ type SummaryGeneratorOptionalTelemetryProperties =
|
|
|
428
428
|
/** Delta in sum of op sizes between the current reference sequence number and the reference
|
|
429
429
|
* sequence number of the last summary */
|
|
430
430
|
"opsSizesSinceLastSummary" |
|
|
431
|
-
/**
|
|
431
|
+
/**
|
|
432
|
+
* Delta between the number of non-system ops since the last summary.
|
|
433
|
+
* See {@link @fluidframework/protocol-base#isSystemMessage}
|
|
434
|
+
*/
|
|
432
435
|
"nonSystemOpsSinceLastSummary" |
|
|
433
436
|
/** Time it took to generate the summary tree and stats. */
|
|
434
437
|
"generateDuration" |
|
package/src/summaryFormat.ts
CHANGED
|
@@ -187,8 +187,12 @@ export const dataStoreAttributesBlobName = ".component";
|
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* Modifies summary tree and stats to put tree under .channels tree.
|
|
190
|
+
*
|
|
191
|
+
* @param summarizeResult - Summary tree and stats to modify
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
190
194
|
* Converts from:
|
|
191
|
-
* ```
|
|
195
|
+
* ```typescript
|
|
192
196
|
* {
|
|
193
197
|
* type: SummaryType.Tree,
|
|
194
198
|
* tree: { a: {...}, b: {...}, c: {...} },
|
|
@@ -197,7 +201,7 @@ export const dataStoreAttributesBlobName = ".component";
|
|
|
197
201
|
*
|
|
198
202
|
* to:
|
|
199
203
|
*
|
|
200
|
-
* ```
|
|
204
|
+
* ```typescript
|
|
201
205
|
* {
|
|
202
206
|
* type: SummaryType.Tree,
|
|
203
207
|
* tree: {
|
|
@@ -209,7 +213,6 @@ export const dataStoreAttributesBlobName = ".component";
|
|
|
209
213
|
* }
|
|
210
214
|
* ```
|
|
211
215
|
* And adds +1 to treeNodeCount in stats.
|
|
212
|
-
* @param summarizeResult - summary tree and stats to modify
|
|
213
216
|
*/
|
|
214
217
|
export function wrapSummaryInChannelsTree(summarizeResult: ISummaryTreeWithStats): void {
|
|
215
218
|
summarizeResult.summary = {
|
package/src/summaryGenerator.ts
CHANGED
|
@@ -393,8 +393,6 @@ export class SummaryGenerator {
|
|
|
393
393
|
|
|
394
394
|
// pre-0.58 error message prefix: summaryNack
|
|
395
395
|
const error = new LoggingError(`Received summaryNack: ${message}`, { retryAfterSeconds });
|
|
396
|
-
logger.sendErrorEvent(
|
|
397
|
-
{ eventName: "SummaryNack", ...summarizeTelemetryProps, retryAfterSeconds }, error);
|
|
398
396
|
|
|
399
397
|
assert(getRetryDelaySecondsFromError(error) === retryAfterSeconds, 0x25f /* "retryAfterSeconds" */);
|
|
400
398
|
// This will only set resultsBuilder.receivedSummaryAckOrNack, as other promises are already set.
|