@fluidframework/container-runtime 0.56.5 → 0.57.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/blobManager.d.ts.map +1 -1
- package/dist/blobManager.js +9 -1
- package/dist/blobManager.js.map +1 -1
- package/dist/connectionTelemetry.d.ts.map +1 -1
- package/dist/connectionTelemetry.js +6 -6
- package/dist/connectionTelemetry.js.map +1 -1
- package/dist/containerRuntime.d.ts +67 -26
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +146 -87
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStore.d.ts +62 -0
- package/dist/dataStore.d.ts.map +1 -0
- package/dist/dataStore.js +135 -0
- package/dist/dataStore.js.map +1 -0
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStores.d.ts +9 -5
- package/dist/dataStores.d.ts.map +1 -1
- package/dist/dataStores.js +14 -19
- package/dist/dataStores.js.map +1 -1
- package/dist/garbageCollection.d.ts +66 -27
- package/dist/garbageCollection.d.ts.map +1 -1
- package/dist/garbageCollection.js +272 -97
- package/dist/garbageCollection.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.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/runningSummarizer.d.ts +1 -0
- package/dist/runningSummarizer.d.ts.map +1 -1
- package/dist/runningSummarizer.js +23 -15
- package/dist/runningSummarizer.js.map +1 -1
- package/dist/summarizerTypes.d.ts +4 -6
- package/dist/summarizerTypes.d.ts.map +1 -1
- package/dist/summarizerTypes.js.map +1 -1
- package/dist/summaryGenerator.d.ts +2 -1
- package/dist/summaryGenerator.d.ts.map +1 -1
- package/dist/summaryGenerator.js +46 -29
- package/dist/summaryGenerator.js.map +1 -1
- package/lib/blobManager.d.ts.map +1 -1
- package/lib/blobManager.js +9 -1
- package/lib/blobManager.js.map +1 -1
- package/lib/connectionTelemetry.d.ts.map +1 -1
- package/lib/connectionTelemetry.js +6 -6
- package/lib/connectionTelemetry.js.map +1 -1
- package/lib/containerRuntime.d.ts +67 -26
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +147 -88
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStore.d.ts +62 -0
- package/lib/dataStore.d.ts.map +1 -0
- package/lib/dataStore.js +130 -0
- package/lib/dataStore.js.map +1 -0
- package/lib/dataStoreContext.js.map +1 -1
- package/lib/dataStores.d.ts +9 -5
- package/lib/dataStores.d.ts.map +1 -1
- package/lib/dataStores.js +13 -18
- package/lib/dataStores.js.map +1 -1
- package/lib/garbageCollection.d.ts +66 -27
- package/lib/garbageCollection.d.ts.map +1 -1
- package/lib/garbageCollection.js +274 -99
- package/lib/garbageCollection.js.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.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/runningSummarizer.d.ts +1 -0
- package/lib/runningSummarizer.d.ts.map +1 -1
- package/lib/runningSummarizer.js +23 -15
- package/lib/runningSummarizer.js.map +1 -1
- package/lib/summarizerTypes.d.ts +4 -6
- package/lib/summarizerTypes.d.ts.map +1 -1
- package/lib/summarizerTypes.js.map +1 -1
- package/lib/summaryGenerator.d.ts +2 -1
- package/lib/summaryGenerator.d.ts.map +1 -1
- package/lib/summaryGenerator.js +46 -29
- package/lib/summaryGenerator.js.map +1 -1
- package/package.json +13 -13
- package/src/blobManager.ts +12 -1
- package/src/connectionTelemetry.ts +7 -6
- package/src/containerRuntime.ts +244 -113
- package/src/dataStore.ts +187 -0
- package/src/dataStoreContext.ts +1 -1
- package/src/dataStores.ts +23 -38
- package/src/garbageCollection.ts +385 -150
- package/src/index.ts +3 -1
- package/src/packageVersion.ts +1 -1
- package/src/runningSummarizer.ts +25 -16
- package/src/summarizerTypes.ts +4 -8
- package/src/summaryGenerator.ts +71 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/container-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "Fluid container runtime",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": "https://github.com/microsoft/FluidFramework",
|
|
@@ -58,27 +58,27 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
60
60
|
"@fluidframework/common-utils": "^0.32.1",
|
|
61
|
-
"@fluidframework/container-definitions": "^0.
|
|
62
|
-
"@fluidframework/container-runtime-definitions": "^0.
|
|
63
|
-
"@fluidframework/container-utils": "^0.
|
|
61
|
+
"@fluidframework/container-definitions": "^0.46.0",
|
|
62
|
+
"@fluidframework/container-runtime-definitions": "^0.57.0",
|
|
63
|
+
"@fluidframework/container-utils": "^0.57.0",
|
|
64
64
|
"@fluidframework/core-interfaces": "^0.42.0",
|
|
65
|
-
"@fluidframework/datastore": "^0.
|
|
65
|
+
"@fluidframework/datastore": "^0.57.0",
|
|
66
66
|
"@fluidframework/driver-definitions": "^0.44.0",
|
|
67
|
-
"@fluidframework/driver-utils": "^0.
|
|
68
|
-
"@fluidframework/garbage-collector": "^0.
|
|
67
|
+
"@fluidframework/driver-utils": "^0.57.0",
|
|
68
|
+
"@fluidframework/garbage-collector": "^0.57.0",
|
|
69
69
|
"@fluidframework/protocol-base": "^0.1034.0",
|
|
70
70
|
"@fluidframework/protocol-definitions": "^0.1026.0",
|
|
71
|
-
"@fluidframework/runtime-definitions": "^0.
|
|
72
|
-
"@fluidframework/runtime-utils": "^0.
|
|
73
|
-
"@fluidframework/telemetry-utils": "^0.
|
|
71
|
+
"@fluidframework/runtime-definitions": "^0.57.0",
|
|
72
|
+
"@fluidframework/runtime-utils": "^0.57.0",
|
|
73
|
+
"@fluidframework/telemetry-utils": "^0.57.0",
|
|
74
74
|
"double-ended-queue": "^2.1.0-0",
|
|
75
75
|
"uuid": "^8.3.1"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@fluidframework/build-common": "^0.23.0",
|
|
79
|
-
"@fluidframework/eslint-config-fluid": "^0.
|
|
80
|
-
"@fluidframework/mocha-test-setup": "^0.
|
|
81
|
-
"@fluidframework/test-runtime-utils": "^0.
|
|
79
|
+
"@fluidframework/eslint-config-fluid": "^0.26.0",
|
|
80
|
+
"@fluidframework/mocha-test-setup": "^0.57.0",
|
|
81
|
+
"@fluidframework/test-runtime-utils": "^0.57.0",
|
|
82
82
|
"@microsoft/api-extractor": "^7.16.1",
|
|
83
83
|
"@rushstack/eslint-config": "^2.5.1",
|
|
84
84
|
"@types/double-ended-queue": "^2.1.0",
|
package/src/blobManager.ts
CHANGED
|
@@ -96,7 +96,18 @@ export class BlobManager {
|
|
|
96
96
|
return new BlobHandle(
|
|
97
97
|
`${BlobManager.basePath}/${storageId}`,
|
|
98
98
|
this.routeContext,
|
|
99
|
-
async () =>
|
|
99
|
+
async () => {
|
|
100
|
+
return this.getStorage().readBlob(storageId).catch((error) => {
|
|
101
|
+
this.logger.sendErrorEvent(
|
|
102
|
+
{
|
|
103
|
+
eventName:"AttachmentReadBlobError",
|
|
104
|
+
id: storageId,
|
|
105
|
+
},
|
|
106
|
+
error,
|
|
107
|
+
);
|
|
108
|
+
throw error;
|
|
109
|
+
});
|
|
110
|
+
},
|
|
100
111
|
);
|
|
101
112
|
}
|
|
102
113
|
|
|
@@ -19,7 +19,7 @@ export const latencyThreshold = 5000;
|
|
|
19
19
|
|
|
20
20
|
class OpPerfTelemetry {
|
|
21
21
|
private pongCount: number = 0;
|
|
22
|
-
private
|
|
22
|
+
private pingLatency: number | undefined;
|
|
23
23
|
|
|
24
24
|
// Collab window tracking. This is timestamp of %1000 message.
|
|
25
25
|
private opSendTimeForLatencyStatisticsForMsnStatistics: number | undefined;
|
|
@@ -61,6 +61,7 @@ class OpPerfTelemetry {
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
this.deltaManager.on("disconnect", () => {
|
|
64
|
+
this.opSendTimeForLatencyStatisticsForMsnStatistics = undefined;
|
|
64
65
|
this.clientSequenceNumberForLatencyStatistics = undefined;
|
|
65
66
|
this.connectionOpSeqNumber = undefined;
|
|
66
67
|
this.firstConnection = false;
|
|
@@ -99,15 +100,14 @@ class OpPerfTelemetry {
|
|
|
99
100
|
|
|
100
101
|
private recordPingTime(latency: number) {
|
|
101
102
|
this.pongCount++;
|
|
102
|
-
this.
|
|
103
|
-
|
|
104
|
-
if (this.pongCount ===
|
|
103
|
+
this.pingLatency = latency;
|
|
104
|
+
// logging one in every 100 pongs
|
|
105
|
+
if (this.pongCount === 100) {
|
|
105
106
|
this.logger.sendPerformanceEvent({
|
|
106
107
|
eventName: "DeltaLatency",
|
|
107
|
-
duration:
|
|
108
|
+
duration: latency,
|
|
108
109
|
});
|
|
109
110
|
this.pongCount = 0;
|
|
110
|
-
this.socketLatency = 0;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -161,6 +161,7 @@ class OpPerfTelemetry {
|
|
|
161
161
|
referenceSequenceNumber: message.referenceSequenceNumber,
|
|
162
162
|
duration,
|
|
163
163
|
category,
|
|
164
|
+
pingLatency: this.pingLatency,
|
|
164
165
|
});
|
|
165
166
|
this.clientSequenceNumberForLatencyStatistics = undefined;
|
|
166
167
|
}
|