@fluidframework/container-runtime 2.0.0-dev.1.4.5.105745 → 2.0.0-dev.2.2.0.111723

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.
Files changed (168) hide show
  1. package/.eslintrc.js +1 -1
  2. package/dist/batchManager.d.ts +11 -6
  3. package/dist/batchManager.d.ts.map +1 -1
  4. package/dist/batchManager.js +23 -13
  5. package/dist/batchManager.js.map +1 -1
  6. package/dist/containerRuntime.d.ts +74 -20
  7. package/dist/containerRuntime.d.ts.map +1 -1
  8. package/dist/containerRuntime.js +190 -137
  9. package/dist/containerRuntime.js.map +1 -1
  10. package/dist/dataStore.d.ts.map +1 -1
  11. package/dist/dataStore.js +6 -0
  12. package/dist/dataStore.js.map +1 -1
  13. package/dist/dataStoreContext.d.ts +14 -21
  14. package/dist/dataStoreContext.d.ts.map +1 -1
  15. package/dist/dataStoreContext.js +71 -57
  16. package/dist/dataStoreContext.js.map +1 -1
  17. package/dist/dataStoreContexts.js +1 -1
  18. package/dist/dataStoreContexts.js.map +1 -1
  19. package/dist/dataStores.d.ts +11 -10
  20. package/dist/dataStores.d.ts.map +1 -1
  21. package/dist/dataStores.js +50 -20
  22. package/dist/dataStores.js.map +1 -1
  23. package/dist/garbageCollection.d.ts +36 -19
  24. package/dist/garbageCollection.d.ts.map +1 -1
  25. package/dist/garbageCollection.js +207 -121
  26. package/dist/garbageCollection.js.map +1 -1
  27. package/dist/gcSweepReadyUsageDetection.d.ts.map +1 -1
  28. package/dist/gcSweepReadyUsageDetection.js +3 -12
  29. package/dist/gcSweepReadyUsageDetection.js.map +1 -1
  30. package/dist/index.d.ts +4 -6
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +3 -5
  33. package/dist/index.js.map +1 -1
  34. package/dist/opCompressor.d.ts +18 -0
  35. package/dist/opCompressor.d.ts.map +1 -0
  36. package/dist/opCompressor.js +50 -0
  37. package/dist/opCompressor.js.map +1 -0
  38. package/dist/opDecompressor.d.ts +20 -0
  39. package/dist/opDecompressor.d.ts.map +1 -0
  40. package/dist/opDecompressor.js +72 -0
  41. package/dist/opDecompressor.js.map +1 -0
  42. package/dist/packageVersion.d.ts +1 -1
  43. package/dist/packageVersion.js +1 -1
  44. package/dist/packageVersion.js.map +1 -1
  45. package/dist/pendingStateManager.d.ts +6 -26
  46. package/dist/pendingStateManager.d.ts.map +1 -1
  47. package/dist/pendingStateManager.js +42 -62
  48. package/dist/pendingStateManager.js.map +1 -1
  49. package/dist/runningSummarizer.d.ts +3 -2
  50. package/dist/runningSummarizer.d.ts.map +1 -1
  51. package/dist/runningSummarizer.js +10 -3
  52. package/dist/runningSummarizer.js.map +1 -1
  53. package/dist/scheduleManager.js.map +1 -1
  54. package/dist/summarizer.js +7 -2
  55. package/dist/summarizer.js.map +1 -1
  56. package/dist/summarizerClientElection.js +1 -1
  57. package/dist/summarizerClientElection.js.map +1 -1
  58. package/dist/summarizerHeuristics.d.ts.map +1 -1
  59. package/dist/summarizerHeuristics.js +0 -3
  60. package/dist/summarizerHeuristics.js.map +1 -1
  61. package/dist/summarizerTypes.d.ts +19 -2
  62. package/dist/summarizerTypes.d.ts.map +1 -1
  63. package/dist/summarizerTypes.js.map +1 -1
  64. package/dist/summaryFormat.d.ts +4 -2
  65. package/dist/summaryFormat.d.ts.map +1 -1
  66. package/dist/summaryFormat.js.map +1 -1
  67. package/dist/summaryGenerator.d.ts.map +1 -1
  68. package/dist/summaryGenerator.js +3 -2
  69. package/dist/summaryGenerator.js.map +1 -1
  70. package/dist/summaryManager.d.ts.map +1 -1
  71. package/dist/summaryManager.js +10 -6
  72. package/dist/summaryManager.js.map +1 -1
  73. package/garbageCollection.md +27 -22
  74. package/lib/batchManager.d.ts +11 -6
  75. package/lib/batchManager.d.ts.map +1 -1
  76. package/lib/batchManager.js +23 -13
  77. package/lib/batchManager.js.map +1 -1
  78. package/lib/containerRuntime.d.ts +74 -20
  79. package/lib/containerRuntime.d.ts.map +1 -1
  80. package/lib/containerRuntime.js +189 -136
  81. package/lib/containerRuntime.js.map +1 -1
  82. package/lib/dataStore.d.ts.map +1 -1
  83. package/lib/dataStore.js +6 -0
  84. package/lib/dataStore.js.map +1 -1
  85. package/lib/dataStoreContext.d.ts +14 -21
  86. package/lib/dataStoreContext.d.ts.map +1 -1
  87. package/lib/dataStoreContext.js +75 -61
  88. package/lib/dataStoreContext.js.map +1 -1
  89. package/lib/dataStoreContexts.js +1 -1
  90. package/lib/dataStoreContexts.js.map +1 -1
  91. package/lib/dataStores.d.ts +11 -10
  92. package/lib/dataStores.d.ts.map +1 -1
  93. package/lib/dataStores.js +53 -23
  94. package/lib/dataStores.js.map +1 -1
  95. package/lib/garbageCollection.d.ts +36 -19
  96. package/lib/garbageCollection.d.ts.map +1 -1
  97. package/lib/garbageCollection.js +208 -122
  98. package/lib/garbageCollection.js.map +1 -1
  99. package/lib/gcSweepReadyUsageDetection.d.ts.map +1 -1
  100. package/lib/gcSweepReadyUsageDetection.js +3 -12
  101. package/lib/gcSweepReadyUsageDetection.js.map +1 -1
  102. package/lib/index.d.ts +4 -6
  103. package/lib/index.d.ts.map +1 -1
  104. package/lib/index.js +2 -4
  105. package/lib/index.js.map +1 -1
  106. package/lib/opCompressor.d.ts +18 -0
  107. package/lib/opCompressor.d.ts.map +1 -0
  108. package/lib/opCompressor.js +46 -0
  109. package/lib/opCompressor.js.map +1 -0
  110. package/lib/opDecompressor.d.ts +20 -0
  111. package/lib/opDecompressor.d.ts.map +1 -0
  112. package/lib/opDecompressor.js +68 -0
  113. package/lib/opDecompressor.js.map +1 -0
  114. package/lib/packageVersion.d.ts +1 -1
  115. package/lib/packageVersion.js +1 -1
  116. package/lib/packageVersion.js.map +1 -1
  117. package/lib/pendingStateManager.d.ts +6 -26
  118. package/lib/pendingStateManager.d.ts.map +1 -1
  119. package/lib/pendingStateManager.js +42 -62
  120. package/lib/pendingStateManager.js.map +1 -1
  121. package/lib/runningSummarizer.d.ts +3 -2
  122. package/lib/runningSummarizer.d.ts.map +1 -1
  123. package/lib/runningSummarizer.js +10 -3
  124. package/lib/runningSummarizer.js.map +1 -1
  125. package/lib/scheduleManager.js.map +1 -1
  126. package/lib/summarizer.js +7 -2
  127. package/lib/summarizer.js.map +1 -1
  128. package/lib/summarizerClientElection.js +1 -1
  129. package/lib/summarizerClientElection.js.map +1 -1
  130. package/lib/summarizerHeuristics.d.ts.map +1 -1
  131. package/lib/summarizerHeuristics.js +0 -3
  132. package/lib/summarizerHeuristics.js.map +1 -1
  133. package/lib/summarizerTypes.d.ts +19 -2
  134. package/lib/summarizerTypes.d.ts.map +1 -1
  135. package/lib/summarizerTypes.js.map +1 -1
  136. package/lib/summaryFormat.d.ts +4 -2
  137. package/lib/summaryFormat.d.ts.map +1 -1
  138. package/lib/summaryFormat.js.map +1 -1
  139. package/lib/summaryGenerator.d.ts.map +1 -1
  140. package/lib/summaryGenerator.js +3 -2
  141. package/lib/summaryGenerator.js.map +1 -1
  142. package/lib/summaryManager.d.ts.map +1 -1
  143. package/lib/summaryManager.js +10 -6
  144. package/lib/summaryManager.js.map +1 -1
  145. package/package.json +37 -63
  146. package/prettier.config.cjs +8 -0
  147. package/src/batchManager.ts +32 -15
  148. package/src/containerRuntime.ts +260 -156
  149. package/src/dataStore.ts +13 -1
  150. package/src/dataStoreContext.ts +100 -76
  151. package/src/dataStoreContexts.ts +1 -1
  152. package/src/dataStores.ts +61 -23
  153. package/src/garbageCollection.ts +257 -126
  154. package/src/gcSweepReadyUsageDetection.ts +2 -10
  155. package/src/index.ts +4 -4
  156. package/src/opCompressor.ts +59 -0
  157. package/src/opDecompressor.ts +82 -0
  158. package/src/packageVersion.ts +1 -1
  159. package/src/pendingStateManager.ts +57 -96
  160. package/src/runningSummarizer.ts +11 -3
  161. package/src/scheduleManager.ts +1 -0
  162. package/src/summarizer.ts +6 -6
  163. package/src/summarizerClientElection.ts +1 -1
  164. package/src/summarizerHeuristics.ts +0 -3
  165. package/src/summarizerTypes.ts +20 -7
  166. package/src/summaryFormat.ts +4 -2
  167. package/src/summaryGenerator.ts +3 -2
  168. package/src/summaryManager.ts +18 -7
@@ -1,28 +1,38 @@
1
1
  # Garbage Collection
2
- Garbage collection (GC) identifies Fluid objects that are not used and deletes them from the Fluid document. This reduces the size of the Fluid file, the in-memory content and the summary that is uploaded to / downloaded from the server. It also makes processing faster as there is less data to process.
2
+ Garbage collection (GC) is the process by which Fluid Framework safely delete objects that are not used. The only responsibility of the users of Fluid Framework is to add and remove references to Fluid objects correctly.
3
3
 
4
- Before understanding the details of how GC works, lets take a look at how to add a reference to Fluid objects when they are in use and remove the reference when they are not in use.
4
+ ## Why have Garbage Collection?
5
+ GC reduces the size of the Fluid file at rest, the in-memory content and the summary that is uploaded to / downloaded from the server. It saves COGS on the server and it makes containers load faster as there is less data to download and process.
5
6
 
6
- ## Fluid object references
7
- - All Fluid objects that are in use must be marked as referenced so that they are not deleted by GC. There are 2 ways to mark objects as referenced:
8
- - Create them as `root`. These objects are always referenced and cannot be marked unreferenced later. For example, `root` data stores are always referenced.
7
+ ## What do I need to do?
8
+ All Fluid objects that are in use must be properly referenced so that they are not deleted by GC. Similarly, references to all unused Fluid objects should be removed so that they can be deleted by GC. It is the responsibility of the users of Fluid Framework to correctly add and remove references to Fluid objects.
9
9
 
10
- `Root` objects can never be deleted so be careful and only create them if they should live forever.
11
- - Store a handle ([IFluidHandle](../../../common/lib/core-interfaces/src/handles.ts)) to the object in a referenced DDS that supports handle in its data. For example, a data store's handle can be stored in a referenced `SharedMap` DDS.
12
- - All references to unused Fluid objects should be removed so that they can be deleted by GC. To remove an object's reference, all its handles should be removed from referenced DDSes.
10
+ ## How do I reference / unreference Fluid objects?
11
+ Currently, the only Fluid objects that are eligible for GC are data stores and attachment blobs. The following sections describe how you can mark them as referenced or unreferenced. These sections speak of a "referenced DDS" which refers to a DDS that is created by a referenced data store.
12
+ ### Data stores
13
+ There are 2 ways to reference a data store:
14
+ - Store the data stores's handle (see [IFluidHandle](../../../common/lib/core-interfaces/src/handles.ts)) in a referenced DDS that supports handle in its data. For example, a data store's handle can be stored in a referenced `SharedMap` DDS.
13
15
 
14
- > Note that there should be at least one `root` data store with one or more DDSes in a Fluid document so that other objects' handles can be stored in it.
16
+ Note that storing a handle of any of a data store's DDS will also mark the data store as referenced.
17
+ - Alias the data store. Aliased data stores are rooted in the container, i.e., they are always referenced and cannot be unreferenced later. Aliased data stores can never be deleted so only do so if you want them to live forever.
18
+
19
+ Once there are no more referenced DDSes in the container containing a handle to a particular data store, that data store is unreferenced and is eligible for GC.
20
+
21
+ > Note: There should be at least one aliased data store with at least one DDS in a container. This is the starting point for GC to look for other referenced objects in the container.
22
+
23
+ ### Attachment blobs
24
+ The only way to reference an attachment blob is to store its IFluidHandle in a referenced DDS similar to data stores.
25
+
26
+ Once there are no more referenced DDSes in the container containing a handle to a particular attachment blob, that attachment blob is unreferenced and is eligible for GC.
15
27
 
16
28
  ## GC algorithm
17
29
  The GC algorithm runs in two phases:
18
30
 
19
31
  ### Mark phase
20
32
  In this phase, the GC algorithm identifies all Fluid objects that are unreferenced and marks them as such:
21
- - It starts at the root data stores and marks them, and all their DDSes as referenced.
22
- > Note: Currently all DDSes are considered as root so they are always referenced. This may change in the future.
23
- - It finds the handles stored in DDSes from #1 and marks the objects corresponding to the handles as referenced.
24
- - It finds the handles stored in DDSes from #2 and marks the objects corresponding to the handles as referenced and so on until it has scanned all objects.
25
- - All the objects in the system that are not marked as referenced in the above steps are marked as unreferenced.
33
+ 1. It starts at the root (aliased) data stores and marks them and all their DDSes as referenced.
34
+ 2. It recursively finds the handles stored in referenced DDSes and marks the objects corresponding to the handles as referenced until is has scanned all objects.
35
+ 3. All the objects in the system that are not marked as referenced are marked as unreferenced. The unreferenced state of the object and timestamp of when it is unreferenced is added to the summary. The timestamp is used to determine how long the object has been unreferenced for and is used for the sweep phase.
26
36
 
27
37
  Mark phase is enabled by default for a container. It is enabled during creation of the container runtime and remains enabled throughout its lifetime. Basically, this setting is persisted in the summary and cannot be changed.
28
38
 
@@ -31,11 +41,6 @@ If you wish to disable this, set the `gcAllowed` option to `false` in `IGCRuntim
31
41
  See `IGCRuntimeOptions` in [containerRuntime.ts](./src/containerRuntime.ts) for more options to control GC behavior.
32
42
 
33
43
  ### Sweep phase
34
- In this phase, the GC algorithm identifies all Fluid objects that have been unreferenced for a specific amount of time (`deleteTimeout`) and deletes them:
35
- - For the objects marked as unreferenced in the mark phase, a timer is started which runs for `deleteTimeout` amount of time.
36
- - When the above timer expires, the corresponding object is marked as `expired`.
37
- - If an object becomes referenced before the timer expires, the timer is cleared, and the object's unreferenced state is removed.
38
- - When sweep runs, it finds all `expired` objects and deletes them.
39
- - Deleted objects are removed from the Fluid file and cannot be brought back (revived).
40
-
41
- GC sweep phase has not been enabled yet.
44
+ In this phase, the GC algorithm identifies all Fluid objects that have been unreferenced for a specific amount of time (typically 30-40 days) and deletes them. Objects are only swept once the GC system is sure that they could never be referenced again by any active clients, i.e., clients that have the object in memory and could reference it.
45
+
46
+ GC sweep phase has not been enabled yet. More details will be added here when sweep is enabled.
@@ -2,8 +2,9 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
+ import { ITelemetryLogger } from "@fluidframework/common-definitions";
5
6
  import { IBatchMessage } from "@fluidframework/container-definitions";
6
- import { ContainerRuntimeMessage } from "./containerRuntime";
7
+ import { ContainerRuntimeMessage, ICompressionRuntimeOptions } from "./containerRuntime";
7
8
  /**
8
9
  * Message type used by BatchManager
9
10
  */
@@ -12,18 +13,22 @@ export declare type BatchMessage = IBatchMessage & {
12
13
  deserializedContent: ContainerRuntimeMessage;
13
14
  referenceSequenceNumber: number;
14
15
  };
16
+ export interface IBatchManagerOptions {
17
+ readonly hardLimit: number;
18
+ readonly softLimit?: number;
19
+ readonly compressionOptions?: ICompressionRuntimeOptions;
20
+ }
15
21
  /**
16
22
  * Helper class that manages partial batch & rollback.
17
23
  */
18
24
  export declare class BatchManager {
19
- readonly softLimit?: number | undefined;
25
+ readonly logger: ITelemetryLogger;
26
+ readonly options: IBatchManagerOptions;
27
+ private readonly opCompressor;
20
28
  private pendingBatch;
21
29
  private batchContentSize;
22
- private static readonly hardLimit;
23
30
  get length(): number;
24
- get limit(): number;
25
- static get limit(): number;
26
- constructor(softLimit?: number | undefined);
31
+ constructor(logger: ITelemetryLogger, options: IBatchManagerOptions);
27
32
  push(message: BatchMessage): boolean;
28
33
  get empty(): boolean;
29
34
  popBatch(): BatchMessage[];
@@ -1 +1 @@
1
- {"version":3,"file":"batchManager.d.ts","sourceRoot":"","sources":["../src/batchManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;GAEG;AACH,oBAAY,YAAY,GAAG,aAAa,GAAG;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,uBAAuB,CAAC;IAC7C,uBAAuB,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,qBAAa,YAAY;aAcO,SAAS,CAAC;IAbtC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,gBAAgB,CAAK;IAM7B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAc;IAE/C,IAAW,MAAM,WAAuC;IACxD,IAAW,KAAK,WAAqC;IACrD,WAAkB,KAAK,WAAqC;gBAEhC,SAAS,CAAC,oBAAQ;IAEvC,IAAI,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO;IA2B3C,IAAW,KAAK,YAA6C;IAEtD,QAAQ;IAOf;;OAEG;IACK,UAAU;sCAGoB,YAAY,KAAK,IAAI;;CAY9D"}
1
+ {"version":3,"file":"batchManager.d.ts","sourceRoot":"","sources":["../src/batchManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGzF;;GAEG;AACH,oBAAY,YAAY,GAAG,aAAa,GAAG;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,uBAAuB,CAAC;IAC7C,uBAAuB,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CAC5D;AAED;;GAEG;AACH,qBAAa,YAAY;aAOO,MAAM,EAAE,gBAAgB;aAAkB,OAAO,EAAE,oBAAoB;IANnG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,gBAAgB,CAAK;IAE7B,IAAW,MAAM,WAAuC;gBAE5B,MAAM,EAAE,gBAAgB,EAAkB,OAAO,EAAE,oBAAoB;IAI5F,IAAI,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO;IAiC3C,IAAW,KAAK,YAA6C;IAEtD,QAAQ;IAef;;OAEG;IACI,UAAU;sCAGqB,YAAY,KAAK,IAAI;;CAY9D"}
@@ -2,20 +2,22 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
+ import { OpCompressor } from "./opCompressor";
5
6
  /**
6
7
  * Helper class that manages partial batch & rollback.
7
8
  */
8
9
  export class BatchManager {
9
- constructor(softLimit) {
10
- this.softLimit = softLimit;
10
+ constructor(logger, options) {
11
+ this.logger = logger;
12
+ this.options = options;
11
13
  this.pendingBatch = [];
12
14
  this.batchContentSize = 0;
15
+ this.opCompressor = new OpCompressor(logger);
13
16
  }
14
17
  get length() { return this.pendingBatch.length; }
15
- get limit() { return BatchManager.hardLimit; }
16
- static get limit() { return BatchManager.hardLimit; }
17
18
  push(message) {
18
- const contentSize = this.batchContentSize + message.contents.length;
19
+ var _a, _b, _c, _d, _e, _f;
20
+ const contentSize = this.batchContentSize + ((_b = (_a = message.contents) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
19
21
  const opCount = this.pendingBatch.length;
20
22
  // Attempt to estimate batch size, aka socket message size.
21
23
  // Each op has pretty large envelope, estimating to be 200 bytes.
@@ -26,10 +28,16 @@ export class BatchManager {
26
28
  // If we were provided soft limit, check for exceeding it.
27
29
  // But only if we have any ops, as the intention here is to flush existing ops (on exceeding this limit)
28
30
  // and start over. That's not an option if we have no ops.
29
- if (this.softLimit !== undefined && this.length > 0 && socketMessageSize >= this.softLimit) {
31
+ // If compression is enabled, the soft and hard limit are ignored and the message will be pushed anyways.
32
+ // Cases where the message is still too large will be handled by the maxConsecutiveReconnects path.
33
+ if (this.options.softLimit !== undefined
34
+ && this.length > 0
35
+ && socketMessageSize >= this.options.softLimit
36
+ && Infinity === ((_d = (_c = this.options.compressionOptions) === null || _c === void 0 ? void 0 : _c.minimumBatchSizeInBytes) !== null && _d !== void 0 ? _d : Infinity)) {
30
37
  return false;
31
38
  }
32
- if (socketMessageSize >= this.limit) {
39
+ if (socketMessageSize >= this.options.hardLimit
40
+ && Infinity === ((_f = (_e = this.options.compressionOptions) === null || _e === void 0 ? void 0 : _e.minimumBatchSizeInBytes) !== null && _f !== void 0 ? _f : Infinity)) {
33
41
  return false;
34
42
  }
35
43
  this.batchContentSize = contentSize;
@@ -39,8 +47,14 @@ export class BatchManager {
39
47
  get empty() { return this.pendingBatch.length === 0; }
40
48
  popBatch() {
41
49
  const batch = this.pendingBatch;
50
+ const size = this.batchContentSize;
42
51
  this.pendingBatch = [];
43
52
  this.batchContentSize = 0;
53
+ if (batch.length > 0
54
+ && this.options.compressionOptions !== undefined
55
+ && this.options.compressionOptions.minimumBatchSizeInBytes < size) {
56
+ return this.opCompressor.compressBatch(batch, size);
57
+ }
44
58
  return batch;
45
59
  }
46
60
  /**
@@ -50,10 +64,11 @@ export class BatchManager {
50
64
  const startPoint = this.pendingBatch.length;
51
65
  return {
52
66
  rollback: (process) => {
67
+ var _a, _b;
53
68
  for (let i = this.pendingBatch.length; i > startPoint;) {
54
69
  i--;
55
70
  const message = this.pendingBatch[i];
56
- this.batchContentSize -= message.contents.length;
71
+ this.batchContentSize -= (_b = (_a = message.contents) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
57
72
  process(message);
58
73
  }
59
74
  this.pendingBatch.length = startPoint;
@@ -61,9 +76,4 @@ export class BatchManager {
61
76
  };
62
77
  }
63
78
  }
64
- // The actual limit is 1Mb (socket.io and Kafka limits)
65
- // We can't estimate it fully, as we
66
- // - do not know what properties relay service will add
67
- // - we do not stringify final op, thus we do not know how much escaping will be added.
68
- BatchManager.hardLimit = 950 * 1024;
69
79
  //# sourceMappingURL=batchManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"batchManager.js","sourceRoot":"","sources":["../src/batchManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH;;GAEG;AACH,MAAM,OAAO,YAAY;IAcrB,YAA4B,SAAkB;QAAlB,cAAS,GAAT,SAAS,CAAS;QAbtC,iBAAY,GAAoB,EAAE,CAAC;QACnC,qBAAgB,GAAG,CAAC,CAAC;IAYoB,CAAC;IAJlD,IAAW,MAAM,KAAK,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,IAAW,KAAK,KAAK,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9C,MAAM,KAAK,KAAK,KAAK,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;IAIrD,IAAI,CAAC,OAAqB;QAC7B,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,GAA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C,CAAC,CAAC,CAAC;oBACrC,IAAI,CAAC,gBAAgB,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;oBACjD,OAAO,CAAC,OAAO,CAAC,CAAC;iBACpB;gBAED,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,UAAU,CAAC;YAC1C,CAAC;SACJ,CAAC;IACN,CAAC;;AAjED,uDAAuD;AACvD,oCAAoC;AACpC,uDAAuD;AACvD,uFAAuF;AAC/D,sBAAS,GAAG,GAAG,GAAG,IAAI,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IBatchMessage } from \"@fluidframework/container-definitions\";\nimport { ContainerRuntimeMessage } from \"./containerRuntime\";\n\n/**\n * Message type used by BatchManager\n */\nexport type BatchMessage = IBatchMessage & {\n localOpMetadata: unknown;\n deserializedContent: ContainerRuntimeMessage;\n referenceSequenceNumber: number;\n};\n\n/**\n * Helper class that manages partial batch & rollback.\n */\nexport class BatchManager {\n private pendingBatch: BatchMessage [] = [];\n private batchContentSize = 0;\n\n // The actual limit is 1Mb (socket.io and Kafka limits)\n // We can't estimate it fully, as we\n // - do not know what properties relay service will add\n // - we do not stringify final op, thus we do not know how much escaping will be added.\n private static readonly hardLimit = 950 * 1024;\n\n public get length() { return this.pendingBatch.length; }\n public get limit() { return BatchManager.hardLimit; }\n public static get limit() { return BatchManager.hardLimit; }\n\n constructor(public readonly softLimit?: number) {}\n\n public push(message: BatchMessage): boolean {\n const contentSize = this.batchContentSize + message.contents.length;\n const opCount = this.pendingBatch.length;\n\n // Attempt to estimate batch size, aka socket message size.\n // Each op has pretty large envelope, estimating to be 200 bytes.\n // Also content will be strigified, and that adds a lot of overhead due to a lot of escape characters.\n // Not taking it into account, as compression work should help there - compressed payload will be\n // initially stored as base64, and that requires only 2 extra escape characters.\n const socketMessageSize = contentSize + 200 * opCount;\n\n // If we were provided soft limit, check for exceeding it.\n // But only if we have any ops, as the intention here is to flush existing ops (on exceeding this limit)\n // and start over. That's not an option if we have no ops.\n if (this.softLimit !== undefined && this.length > 0 && socketMessageSize >= this.softLimit) {\n return false;\n }\n\n if (socketMessageSize >= this.limit) {\n return false;\n }\n\n this.batchContentSize = contentSize;\n this.pendingBatch.push(message);\n return true;\n }\n\n public get empty() { return this.pendingBatch.length === 0; }\n\n public popBatch() {\n const batch = this.pendingBatch;\n this.pendingBatch = [];\n this.batchContentSize = 0;\n return batch;\n }\n\n /**\n * Capture the pending state at this point\n */\n public checkpoint() {\n const startPoint = this.pendingBatch.length;\n return {\n rollback: (process: (message: BatchMessage) => void) => {\n for (let i = this.pendingBatch.length; i > startPoint;) {\n i--;\n const message = this.pendingBatch[i];\n this.batchContentSize -= message.contents.length;\n process(message);\n }\n\n this.pendingBatch.length = startPoint;\n },\n };\n }\n}\n"]}
1
+ {"version":3,"file":"batchManager.js","sourceRoot":"","sources":["../src/batchManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAiB9C;;GAEG;AACH,MAAM,OAAO,YAAY;IAOrB,YAA4B,MAAwB,EAAkB,OAA6B;QAAvE,WAAM,GAAN,MAAM,CAAkB;QAAkB,YAAO,GAAP,OAAO,CAAsB;QAL3F,iBAAY,GAAoB,EAAE,CAAC;QACnC,qBAAgB,GAAG,CAAC,CAAC;QAKzB,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAJD,IAAW,MAAM,KAAK,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAMjD,IAAI,CAAC,OAAqB;;QAC7B,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,GAAG,CAAC,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,MAAM,mCAAI,CAAC,CAAC,CAAC;QAC5E,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,MAA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I,CAAC,OAAO,CAAC,kBAAkB,CAAC,uBAAuB,GAAG,IAAI,EAAE;YACnE,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;SACvD;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;OAEG;IACI,UAAU;QACb,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;QAC5C,OAAO;YACH,QAAQ,EAAE,CAAC,OAAwC,EAAE,EAAE;;gBACnD,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,UAAU,GAAG;oBACpD,CAAC,EAAE,CAAC;oBACJ,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;oBACrC,IAAI,CAAC,gBAAgB,IAAI,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,MAAM,mCAAI,CAAC,CAAC;oBACvD,OAAO,CAAC,OAAO,CAAC,CAAC;iBACpB;gBAED,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,UAAU,CAAC;YAC1C,CAAC;SACJ,CAAC;IACN,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ITelemetryLogger } from \"@fluidframework/common-definitions\";\nimport { IBatchMessage } from \"@fluidframework/container-definitions\";\nimport { ContainerRuntimeMessage, ICompressionRuntimeOptions } from \"./containerRuntime\";\nimport { OpCompressor } from \"./opCompressor\";\n\n/**\n * Message type used by BatchManager\n */\nexport type BatchMessage = IBatchMessage & {\n localOpMetadata: unknown;\n deserializedContent: ContainerRuntimeMessage;\n referenceSequenceNumber: number;\n};\n\nexport interface IBatchManagerOptions {\n readonly hardLimit: number;\n readonly softLimit?: number;\n readonly compressionOptions?: ICompressionRuntimeOptions;\n}\n\n/**\n * Helper class that manages partial batch & rollback.\n */\nexport class BatchManager {\n private readonly opCompressor: OpCompressor;\n private pendingBatch: BatchMessage [] = [];\n private batchContentSize = 0;\n\n public get length() { return this.pendingBatch.length; }\n\n constructor(public readonly logger: ITelemetryLogger, public readonly options: IBatchManagerOptions) {\n this.opCompressor = new OpCompressor(logger);\n }\n\n public push(message: BatchMessage): boolean {\n const contentSize = this.batchContentSize + (message.contents?.length ?? 0);\n const opCount = this.pendingBatch.length;\n\n // Attempt to estimate batch size, aka socket message size.\n // Each op has pretty large envelope, estimating to be 200 bytes.\n // Also content will be strigified, and that adds a lot of overhead due to a lot of escape characters.\n // Not taking it into account, as compression work should help there - compressed payload will be\n // initially stored as base64, and that requires only 2 extra escape characters.\n const socketMessageSize = contentSize + 200 * opCount;\n\n // If we were provided soft limit, check for exceeding it.\n // But only if we have any ops, as the intention here is to flush existing ops (on exceeding this limit)\n // and start over. That's not an option if we have no ops.\n // If compression is enabled, the soft and hard limit are ignored and the message will be pushed anyways.\n // Cases where the message is still too large will be handled by the maxConsecutiveReconnects path.\n if (this.options.softLimit !== undefined\n && this.length > 0\n && socketMessageSize >= this.options.softLimit\n && Infinity === (this.options.compressionOptions?.minimumBatchSizeInBytes ?? Infinity)) {\n return false;\n }\n\n if (socketMessageSize >= this.options.hardLimit\n && Infinity === (this.options.compressionOptions?.minimumBatchSizeInBytes ?? Infinity)) {\n return false;\n }\n\n this.batchContentSize = contentSize;\n this.pendingBatch.push(message);\n return true;\n }\n\n public get empty() { return this.pendingBatch.length === 0; }\n\n public popBatch() {\n const batch = this.pendingBatch;\n const size = this.batchContentSize;\n this.pendingBatch = [];\n this.batchContentSize = 0;\n\n if (batch.length > 0\n && this.options.compressionOptions !== undefined\n && this.options.compressionOptions.minimumBatchSizeInBytes < size) {\n return this.opCompressor.compressBatch(batch, size);\n }\n\n return batch;\n }\n\n /**\n * Capture the pending state at this point\n */\n public checkpoint() {\n const startPoint = this.pendingBatch.length;\n return {\n rollback: (process: (message: BatchMessage) => void) => {\n for (let i = this.pendingBatch.length; i > startPoint;) {\n i--;\n const message = this.pendingBatch[i];\n this.batchContentSize -= message.contents?.length ?? 0;\n process(message);\n }\n\n this.pendingBatch.length = startPoint;\n },\n };\n }\n}\n"]}
@@ -11,7 +11,7 @@ import { IDocumentStorageService } from "@fluidframework/driver-definitions";
11
11
  import { IClientDetails, IDocumentMessage, IQuorumClients, ISequencedDocumentMessage, ISignalMessage, ISummaryTree, MessageType } from "@fluidframework/protocol-definitions";
12
12
  import { FlushMode, IFluidDataStoreContextDetached, IFluidDataStoreRegistry, IGarbageCollectionData, NamedFluidDataStoreRegistryEntries, ISummaryTreeWithStats, IDataStore, ITelemetryContext } from "@fluidframework/runtime-definitions";
13
13
  import { BatchMessage } from "./batchManager";
14
- import { SubmitSummaryResult, ISubmitSummaryOptions, ISummarizer, ISummarizerInternalsProvider, ISummarizerOptions, ISummarizerRuntime } from "./summarizerTypes";
14
+ import { SubmitSummaryResult, ISubmitSummaryOptions, ISummarizer, ISummarizerInternalsProvider, ISummarizerOptions, ISummarizerRuntime, IRefreshSummaryAckOptions } from "./summarizerTypes";
15
15
  import { GCNodeType, IGarbageCollectionRuntime, IGCStats } from "./garbageCollection";
16
16
  export declare enum ContainerMessageType {
17
17
  FluidDataStoreOp = "component",
@@ -37,6 +37,7 @@ export interface ISummaryBaseConfiguration {
37
37
  */
38
38
  initialSummarizerDelayMs: number;
39
39
  /**
40
+ * @deprecated
40
41
  * Flag that will enable changing elected summarizer client after maxOpsSinceLastSummary.
41
42
  * This defaults to false (disabled) and must be explicitly set to true to enable.
42
43
  */
@@ -55,11 +56,6 @@ export interface ISummaryBaseConfiguration {
55
56
  }
56
57
  export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfiguration {
57
58
  state: "enabled";
58
- /**
59
- * @deprecated Please move all implementations to {@link ISummaryConfigurationHeuristics.minIdleTime} and
60
- * {@link ISummaryConfigurationHeuristics.maxIdleTime} instead.
61
- */
62
- idleTime?: number;
63
59
  /**
64
60
  * Defines the maximum allowed time, since the last received Ack, before running the summary
65
61
  * with reason maxTime.
@@ -105,6 +101,16 @@ export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfigurati
105
101
  * For example: (multiplier) * (number of non-runtime ops) = weighted number of non-runtime ops
106
102
  */
107
103
  nonRuntimeOpWeight: number;
104
+ /**
105
+ * Number of ops since last summary needed before a non-runtime op can trigger running summary heuristics.
106
+ *
107
+ * Note: Any runtime ops sent before the threshold is reached will trigger heuristics normally.
108
+ * This threshold ONLY applies to non-runtime ops triggering summaries.
109
+ *
110
+ * For example: Say the threshold is 20. Sending 19 non-runtime ops will not trigger any heuristic checks.
111
+ * Sending the 20th non-runtime op will trigger the heuristic checks for summarizing.
112
+ */
113
+ nonRuntimeHeuristicThreshold?: number;
108
114
  }
109
115
  export interface ISummaryConfigurationDisableSummarizer {
110
116
  state: "disabled";
@@ -197,6 +203,20 @@ export interface ISummaryRuntimeOptions {
197
203
  * */
198
204
  summarizerOptions?: Readonly<Partial<ISummarizerOptions>>;
199
205
  }
206
+ /**
207
+ * Options for op compression.
208
+ * @experimental - Not ready for use
209
+ */
210
+ export interface ICompressionRuntimeOptions {
211
+ /**
212
+ * The minimum size the batch's payload must exceed before the batch's contents will be compressed.
213
+ */
214
+ readonly minimumBatchSizeInBytes: number;
215
+ /**
216
+ * The compression algorithm that will be used to compress the op.
217
+ */
218
+ readonly compressionAlgorithm: CompressionAlgorithms;
219
+ }
200
220
  /**
201
221
  * Options for container runtime.
202
222
  */
@@ -223,6 +243,22 @@ export interface IContainerRuntimeOptions {
223
243
  * Save enough runtime state to be able to serialize upon request and load to the same state in a new container.
224
244
  */
225
245
  readonly enableOfflineLoad?: boolean;
246
+ /**
247
+ * Enables the runtime to compress ops. Compression is disabled when undefined.
248
+ * @experimental Not ready for use.
249
+ */
250
+ readonly compressionOptions?: ICompressionRuntimeOptions;
251
+ /**
252
+ * If specified, when in FlushMode.TurnBased, if the size of the ops between JS turns exceeds this value,
253
+ * an error will be thrown and the container will close.
254
+ *
255
+ * If unspecified, the limit is 950 * 1024.
256
+ *
257
+ * 'Infinity' will disable any limit.
258
+ *
259
+ * @experimental This config should be driven by the connection with the service and will be moved in the future.
260
+ */
261
+ readonly maxBatchSizeInBytes?: number;
226
262
  }
227
263
  /**
228
264
  * The summary tree returned by the root node. It adds state relevant to the root of the tree.
@@ -245,6 +281,12 @@ export declare enum RuntimeHeaders {
245
281
  /** True if the request is coming from an IFluidHandle. */
246
282
  viaHandle = "viaHandle"
247
283
  }
284
+ /**
285
+ * Available compression algorithms for op compression.
286
+ */
287
+ export declare enum CompressionAlgorithms {
288
+ lz4 = "lz4"
289
+ }
248
290
  /**
249
291
  * @deprecated - use ContainerRuntimeMessage instead
250
292
  */
@@ -264,7 +306,7 @@ export declare function isRuntimeMessage(message: ISequencedDocumentMessage): bo
264
306
  /**
265
307
  * Unpacks runtime messages
266
308
  *
267
- * @remarks This API makes no promises regarding backward-compatability. This is internal API.
309
+ * @remarks This API makes no promises regarding backward-compatibility. This is internal API.
268
310
  * @param message - message (as it observed in storage / service)
269
311
  * @returns unpacked runtime message
270
312
  *
@@ -322,6 +364,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
322
364
  get IFluidHandleContext(): IFluidHandleContext;
323
365
  private readonly handleContext;
324
366
  private readonly mc;
367
+ private readonly opDecompressor;
325
368
  private readonly summarizerClientElection?;
326
369
  /**
327
370
  * summaryManager will only be created if this client is permitted to spawn a summarizing client
@@ -334,8 +377,8 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
334
377
  private readonly maxConsecutiveReconnects;
335
378
  private readonly defaultMaxConsecutiveReconnects;
336
379
  private _orderSequentiallyCalls;
337
- private _flushMode;
338
- private flushTrigger;
380
+ private readonly _flushMode;
381
+ private flushMicroTaskExists;
339
382
  private _connected;
340
383
  private readonly savedOps;
341
384
  private baseSnapshotBlobs?;
@@ -390,6 +433,10 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
390
433
  */
391
434
  private nextSummaryNumber;
392
435
  private constructor();
436
+ /**
437
+ * Initializes the state from the base snapshot this container runtime loaded from.
438
+ */
439
+ private initializeBaseState;
393
440
  dispose(error?: Error): void;
394
441
  get IFluidTokenProvider(): IFluidTokenProvider | undefined;
395
442
  /**
@@ -423,17 +470,23 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
423
470
  processSignal(message: ISignalMessage, local: boolean): void;
424
471
  getRootDataStore(id: string, wait?: boolean): Promise<IFluidRouter>;
425
472
  private getRootDataStoreChannel;
426
- setFlushMode(mode: FlushMode): void;
427
- flush(): void;
473
+ /**
474
+ * Flush the pending ops manually.
475
+ * This method is expected to be called at the end of a batch.
476
+ */
477
+ private flush;
428
478
  protected flushBatch(batch: BatchMessage[]): void;
429
479
  orderSequentially(callback: () => void): void;
430
- private trackOrderSequentiallyCalls;
431
480
  createDataStore(pkg: string | string[]): Promise<IDataStore>;
432
481
  createDetachedRootDataStore(pkg: Readonly<string[]>, rootDataStoreId: string): IFluidDataStoreContextDetached;
433
482
  createDetachedDataStore(pkg: Readonly<string[]>): IFluidDataStoreContextDetached;
434
483
  _createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
435
484
  private _createDataStore;
436
485
  private canSendOps;
486
+ /**
487
+ * Are we in the middle of batching ops together?
488
+ */
489
+ private currentlyBatching;
437
490
  getQuorum(): IQuorumClients;
438
491
  getAudience(): IAudience;
439
492
  /**
@@ -496,16 +549,16 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
496
549
  * Implementation of IGarbageCollectionRuntime::updateUsedRoutes.
497
550
  * After GC has run, called to notify this container's nodes of routes that are used in it.
498
551
  * @param usedRoutes - The routes that are used in all nodes in this Container.
499
- * @param gcTimestamp - The time when GC was run that generated these used routes. If any node node becomes
500
- * unreferenced as part of this GC run, this should be used to update the time when it happens.
501
552
  */
502
- updateUsedRoutes(usedRoutes: string[], gcTimestamp?: number): void;
553
+ updateUsedRoutes(usedRoutes: string[]): void;
503
554
  /**
504
- * When running GC in test mode, this is called to delete objects whose routes are unused. This enables testing
505
- * scenarios with accessing deleted content.
555
+ * This is called to update objects whose routes are unused. The unused objects are either deleted or marked as
556
+ * tombstones.
506
557
  * @param unusedRoutes - The routes that are unused in all data stores in this Container.
558
+ * @param tombstone - if true, the objects corresponding to unused routes are marked tombstones. Otherwise, they
559
+ * are deleted.
507
560
  */
508
- deleteUnusedRoutes(unusedRoutes: string[]): void;
561
+ updateUnusedRoutes(unusedRoutes: string[], tombstone: boolean): void;
509
562
  /**
510
563
  * Returns a server generated referenced timestamp to be used to track unreferenced nodes by GC.
511
564
  */
@@ -575,8 +628,9 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
575
628
  */
576
629
  private reSubmit;
577
630
  private rollback;
631
+ private waitForDeltaManagerToCatchup;
578
632
  /** Implementation of ISummarizerInternalsProvider.refreshLatestSummaryAck */
579
- refreshLatestSummaryAck(proposalHandle: string | undefined, ackHandle: string, summaryRefSeq: number, summaryLogger: ITelemetryLogger): Promise<void>;
633
+ refreshLatestSummaryAck(options: IRefreshSummaryAckOptions): Promise<void>;
580
634
  /**
581
635
  * Fetches the latest snapshot from storage and uses it to refresh SummarizerNode's
582
636
  * internal state as it should be considered the latest summary ack.
@@ -586,7 +640,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
586
640
  private refreshLatestSummaryAckFromServer;
587
641
  private fetchSnapshotFromStorage;
588
642
  notifyAttaching(snapshot: ISnapshotTreeWithBlobContents): void;
589
- getSnapshotBlobs(): Promise<void>;
643
+ private initializeBaseSnapshotBlobs;
590
644
  getPendingLocalState(): unknown;
591
645
  readonly summarizeOnDemand: ISummarizer["summarizeOnDemand"];
592
646
  readonly enqueueSummarize: ISummarizer["enqueueSummarize"];
@@ -1 +1 @@
1
- {"version":3,"file":"containerRuntime.d.ts","sourceRoot":"","sources":["../src/containerRuntime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAgD,gBAAgB,EAAE,MAA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