@fluidframework/container-runtime 2.0.0-internal.1.0.0.84253 → 2.0.0-internal.1.0.1

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.
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/container-runtime";
8
- export declare const pkgVersion = "2.0.0-internal.1.0.0.84253";
8
+ export declare const pkgVersion = "2.0.0-internal.1.0.1";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,sCAAsC,CAAC;AAC3D,eAAO,MAAM,UAAU,+BAA+B,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,sCAAsC,CAAC;AAC3D,eAAO,MAAM,UAAU,yBAAyB,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/container-runtime";
8
- export const pkgVersion = "2.0.0-internal.1.0.0.84253";
8
+ export const pkgVersion = "2.0.0-internal.1.0.1";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAC3D,MAAM,CAAC,MAAM,UAAU,GAAG,4BAA4B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-runtime\";\nexport const pkgVersion = \"2.0.0-internal.1.0.0.84253\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAC3D,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-runtime\";\nexport const pkgVersion = \"2.0.0-internal.1.0.1\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/container-runtime",
3
- "version": "2.0.0-internal.1.0.0.84253",
3
+ "version": "2.0.0-internal.1.0.1",
4
4
  "description": "Fluid container runtime",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -63,19 +63,19 @@
63
63
  "dependencies": {
64
64
  "@fluidframework/common-definitions": "^0.20.1",
65
65
  "@fluidframework/common-utils": "^1.0.0",
66
- "@fluidframework/container-definitions": "2.0.0-internal.1.0.0.84253",
67
- "@fluidframework/container-runtime-definitions": "2.0.0-internal.1.0.0.84253",
68
- "@fluidframework/container-utils": "2.0.0-internal.1.0.0.84253",
69
- "@fluidframework/core-interfaces": "2.0.0-internal.1.0.0.84253",
70
- "@fluidframework/datastore": "2.0.0-internal.1.0.0.84253",
71
- "@fluidframework/driver-definitions": "2.0.0-internal.1.0.0.84253",
72
- "@fluidframework/driver-utils": "2.0.0-internal.1.0.0.84253",
73
- "@fluidframework/garbage-collector": "2.0.0-internal.1.0.0.84253",
66
+ "@fluidframework/container-definitions": "^2.0.0-internal.1.0.1",
67
+ "@fluidframework/container-runtime-definitions": "^2.0.0-internal.1.0.1",
68
+ "@fluidframework/container-utils": "^2.0.0-internal.1.0.1",
69
+ "@fluidframework/core-interfaces": "^2.0.0-internal.1.0.1",
70
+ "@fluidframework/datastore": "^2.0.0-internal.1.0.1",
71
+ "@fluidframework/driver-definitions": "^2.0.0-internal.1.0.1",
72
+ "@fluidframework/driver-utils": "^2.0.0-internal.1.0.1",
73
+ "@fluidframework/garbage-collector": "^2.0.0-internal.1.0.1",
74
74
  "@fluidframework/protocol-base": "^0.1037.1000",
75
75
  "@fluidframework/protocol-definitions": "^1.0.0",
76
- "@fluidframework/runtime-definitions": "2.0.0-internal.1.0.0.84253",
77
- "@fluidframework/runtime-utils": "2.0.0-internal.1.0.0.84253",
78
- "@fluidframework/telemetry-utils": "2.0.0-internal.1.0.0.84253",
76
+ "@fluidframework/runtime-definitions": "^2.0.0-internal.1.0.1",
77
+ "@fluidframework/runtime-utils": "^2.0.0-internal.1.0.1",
78
+ "@fluidframework/telemetry-utils": "^2.0.0-internal.1.0.1",
79
79
  "double-ended-queue": "^2.1.0-0",
80
80
  "uuid": "^8.3.1"
81
81
  },
@@ -84,8 +84,8 @@
84
84
  "@fluidframework/build-tools": "^0.3.1000",
85
85
  "@fluidframework/container-runtime-previous": "npm:@fluidframework/container-runtime@^1.0.0",
86
86
  "@fluidframework/eslint-config-fluid": "^0.28.2000",
87
- "@fluidframework/mocha-test-setup": "2.0.0-internal.1.0.0.84253",
88
- "@fluidframework/test-runtime-utils": "2.0.0-internal.1.0.0.84253",
87
+ "@fluidframework/mocha-test-setup": "^2.0.0-internal.1.0.1",
88
+ "@fluidframework/test-runtime-utils": "^2.0.0-internal.1.0.1",
89
89
  "@microsoft/api-extractor": "^7.22.2",
90
90
  "@rushstack/eslint-config": "^2.5.1",
91
91
  "@types/double-ended-queue": "^2.1.0",
@@ -3032,25 +3032,29 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents>
3032
3032
  summaryLogger: ITelemetryLogger,
3033
3033
  ) {
3034
3034
  const readAndParseBlob = async <T>(id: string) => readAndParse<T>(this.storage, id);
3035
- const { snapshotTree } = await this.fetchSnapshotFromStorage(
3036
- ackHandle,
3037
- summaryLogger,
3038
- {
3039
- eventName: "RefreshLatestSummaryGetSnapshot",
3040
- ackHandle,
3041
- summaryRefSeq,
3042
- fetchLatest: false,
3043
- },
3044
- );
3045
- const result = await this.summarizerNode.refreshLatestSummary(
3046
- proposalHandle,
3047
- summaryRefSeq,
3048
- async () => snapshotTree,
3049
- readAndParseBlob,
3050
- summaryLogger,
3051
- );
3052
-
3053
- // Notify the garbage collector so it can update its latest summary state.
3035
+ // The call to fetch the snapshot is very expensive and not always needed.
3036
+ // It should only be done by the summarizerNode, if required.
3037
+ const snapshotTreeFetcher = async () => {
3038
+ const fetchResult = await this.fetchSnapshotFromStorage(
3039
+ ackHandle,
3040
+ summaryLogger,
3041
+ {
3042
+ eventName: "RefreshLatestSummaryGetSnapshot",
3043
+ ackHandle,
3044
+ summaryRefSeq,
3045
+ fetchLatest: false,
3046
+ });
3047
+ return fetchResult.snapshotTree;
3048
+ };
3049
+ const result = await this.summarizerNode.refreshLatestSummary(
3050
+ proposalHandle,
3051
+ summaryRefSeq,
3052
+ snapshotTreeFetcher,
3053
+ readAndParseBlob,
3054
+ summaryLogger,
3055
+ );
3056
+
3057
+ // Notify the garbage collector so it can update its latest summary state.
3054
3058
  await this.garbageCollector.latestSummaryStateRefreshed(result, readAndParseBlob);
3055
3059
  }
3056
3060
 
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-runtime";
9
- export const pkgVersion = "2.0.0-internal.1.0.0.84253";
9
+ export const pkgVersion = "2.0.0-internal.1.0.1";