@fluidframework/container-runtime 2.0.0-dev.6.4.0.192049 → 2.0.0-dev.7.2.0.204906

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 (345) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/api-extractor.json +1 -1
  3. package/api-report/container-runtime.api.md +866 -0
  4. package/dist/blobManager.d.ts +4 -6
  5. package/dist/blobManager.d.ts.map +1 -1
  6. package/dist/blobManager.js +56 -78
  7. package/dist/blobManager.js.map +1 -1
  8. package/dist/connectionTelemetry.d.ts.map +1 -1
  9. package/dist/connectionTelemetry.js +75 -42
  10. package/dist/connectionTelemetry.js.map +1 -1
  11. package/dist/container-runtime-alpha.d.ts +1744 -0
  12. package/dist/container-runtime-beta.d.ts +1744 -0
  13. package/dist/container-runtime-public.d.ts +1744 -0
  14. package/dist/container-runtime-untrimmed.d.ts +1805 -0
  15. package/dist/containerHandleContext.js +3 -3
  16. package/dist/containerHandleContext.js.map +1 -1
  17. package/dist/containerRuntime.d.ts +94 -102
  18. package/dist/containerRuntime.d.ts.map +1 -1
  19. package/dist/containerRuntime.js +478 -454
  20. package/dist/containerRuntime.js.map +1 -1
  21. package/dist/dataStore.js +11 -11
  22. package/dist/dataStore.js.map +1 -1
  23. package/dist/dataStoreContext.d.ts +2 -4
  24. package/dist/dataStoreContext.d.ts.map +1 -1
  25. package/dist/dataStoreContext.js +56 -59
  26. package/dist/dataStoreContext.js.map +1 -1
  27. package/dist/dataStoreRegistry.d.ts +3 -0
  28. package/dist/dataStoreRegistry.d.ts.map +1 -1
  29. package/dist/dataStoreRegistry.js +6 -3
  30. package/dist/dataStoreRegistry.js.map +1 -1
  31. package/dist/dataStores.d.ts +0 -2
  32. package/dist/dataStores.d.ts.map +1 -1
  33. package/dist/dataStores.js +3 -8
  34. package/dist/dataStores.js.map +1 -1
  35. package/dist/deltaManagerProxyBase.js +4 -4
  36. package/dist/deltaManagerProxyBase.js.map +1 -1
  37. package/dist/deltaManagerSummarizerProxy.js +6 -6
  38. package/dist/deltaManagerSummarizerProxy.js.map +1 -1
  39. package/dist/deltaScheduler.js.map +1 -1
  40. package/dist/error.d.ts.map +1 -1
  41. package/dist/error.js.map +1 -1
  42. package/dist/gc/garbageCollection.d.ts +6 -0
  43. package/dist/gc/garbageCollection.d.ts.map +1 -1
  44. package/dist/gc/garbageCollection.js +36 -25
  45. package/dist/gc/garbageCollection.js.map +1 -1
  46. package/dist/gc/gcConfigs.d.ts +1 -0
  47. package/dist/gc/gcConfigs.d.ts.map +1 -1
  48. package/dist/gc/gcConfigs.js +13 -3
  49. package/dist/gc/gcConfigs.js.map +1 -1
  50. package/dist/gc/gcDefinitions.d.ts +48 -28
  51. package/dist/gc/gcDefinitions.d.ts.map +1 -1
  52. package/dist/gc/gcDefinitions.js +10 -7
  53. package/dist/gc/gcDefinitions.js.map +1 -1
  54. package/dist/gc/gcSummaryDefinitions.d.ts +1 -1
  55. package/dist/gc/gcSummaryDefinitions.js.map +1 -1
  56. package/dist/gc/gcTelemetry.d.ts +3 -4
  57. package/dist/gc/gcTelemetry.d.ts.map +1 -1
  58. package/dist/gc/gcTelemetry.js +7 -8
  59. package/dist/gc/gcTelemetry.js.map +1 -1
  60. package/dist/gc/gcUnreferencedStateTracker.js +3 -3
  61. package/dist/gc/gcUnreferencedStateTracker.js.map +1 -1
  62. package/dist/gc/index.d.ts +2 -2
  63. package/dist/gc/index.d.ts.map +1 -1
  64. package/dist/gc/index.js +3 -7
  65. package/dist/gc/index.js.map +1 -1
  66. package/dist/id-compressor/appendOnlySortedMap.js.map +1 -1
  67. package/dist/id-compressor/idCompressor.js.map +1 -1
  68. package/dist/id-compressor/identifiers.d.ts +3 -3
  69. package/dist/id-compressor/identifiers.d.ts.map +1 -1
  70. package/dist/id-compressor/utilities.d.ts +3 -0
  71. package/dist/id-compressor/utilities.d.ts.map +1 -1
  72. package/dist/id-compressor/utilities.js +3 -0
  73. package/dist/id-compressor/utilities.js.map +1 -1
  74. package/dist/index.d.ts +5 -3
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +6 -2
  77. package/dist/index.js.map +1 -1
  78. package/dist/messageTypes.d.ts +137 -0
  79. package/dist/messageTypes.d.ts.map +1 -0
  80. package/dist/messageTypes.js +32 -0
  81. package/dist/messageTypes.js.map +1 -0
  82. package/dist/opLifecycle/batchManager.js +6 -6
  83. package/dist/opLifecycle/batchManager.js.map +1 -1
  84. package/dist/opLifecycle/definitions.d.ts +7 -3
  85. package/dist/opLifecycle/definitions.d.ts.map +1 -1
  86. package/dist/opLifecycle/definitions.js.map +1 -1
  87. package/dist/opLifecycle/opDecompressor.d.ts.map +1 -1
  88. package/dist/opLifecycle/opDecompressor.js +0 -4
  89. package/dist/opLifecycle/opDecompressor.js.map +1 -1
  90. package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -1
  91. package/dist/opLifecycle/opGroupingManager.js.map +1 -1
  92. package/dist/opLifecycle/opSplitter.js +3 -3
  93. package/dist/opLifecycle/opSplitter.js.map +1 -1
  94. package/dist/opLifecycle/outbox.d.ts.map +1 -1
  95. package/dist/opLifecycle/outbox.js +7 -2
  96. package/dist/opLifecycle/outbox.js.map +1 -1
  97. package/dist/opLifecycle/remoteMessageProcessor.d.ts +17 -3
  98. package/dist/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
  99. package/dist/opLifecycle/remoteMessageProcessor.js +38 -25
  100. package/dist/opLifecycle/remoteMessageProcessor.js.map +1 -1
  101. package/dist/packageVersion.d.ts +1 -1
  102. package/dist/packageVersion.js +1 -1
  103. package/dist/packageVersion.js.map +1 -1
  104. package/dist/pendingStateManager.d.ts +4 -20
  105. package/dist/pendingStateManager.d.ts.map +1 -1
  106. package/dist/pendingStateManager.js +36 -46
  107. package/dist/pendingStateManager.js.map +1 -1
  108. package/dist/scheduleManager.js +6 -2
  109. package/dist/scheduleManager.js.map +1 -1
  110. package/dist/summary/orderedClientElection.d.ts +7 -4
  111. package/dist/summary/orderedClientElection.d.ts.map +1 -1
  112. package/dist/summary/orderedClientElection.js +54 -54
  113. package/dist/summary/orderedClientElection.js.map +1 -1
  114. package/dist/summary/runWhileConnectedCoordinator.d.ts +5 -0
  115. package/dist/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
  116. package/dist/summary/runWhileConnectedCoordinator.js +7 -6
  117. package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
  118. package/dist/summary/runningSummarizer.d.ts.map +1 -1
  119. package/dist/summary/runningSummarizer.js +40 -38
  120. package/dist/summary/runningSummarizer.js.map +1 -1
  121. package/dist/summary/summarizer.d.ts +2 -0
  122. package/dist/summary/summarizer.d.ts.map +1 -1
  123. package/dist/summary/summarizer.js +18 -8
  124. package/dist/summary/summarizer.js.map +1 -1
  125. package/dist/summary/summarizerClientElection.js +6 -6
  126. package/dist/summary/summarizerClientElection.js.map +1 -1
  127. package/dist/summary/summarizerHeuristics.js +9 -9
  128. package/dist/summary/summarizerHeuristics.js.map +1 -1
  129. package/dist/summary/summarizerNode/summarizerNode.d.ts +1 -1
  130. package/dist/summary/summarizerNode/summarizerNode.js +8 -8
  131. package/dist/summary/summarizerNode/summarizerNode.js.map +1 -1
  132. package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +1 -1
  133. package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
  134. package/dist/summary/summarizerNode/summarizerNodeUtils.js +3 -3
  135. package/dist/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
  136. package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -2
  137. package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
  138. package/dist/summary/summarizerTypes.d.ts +107 -22
  139. package/dist/summary/summarizerTypes.d.ts.map +1 -1
  140. package/dist/summary/summarizerTypes.js.map +1 -1
  141. package/dist/summary/summaryCollection.d.ts +18 -2
  142. package/dist/summary/summaryCollection.d.ts.map +1 -1
  143. package/dist/summary/summaryCollection.js +23 -21
  144. package/dist/summary/summaryCollection.js.map +1 -1
  145. package/dist/summary/summaryFormat.d.ts +15 -6
  146. package/dist/summary/summaryFormat.d.ts.map +1 -1
  147. package/dist/summary/summaryFormat.js.map +1 -1
  148. package/dist/summary/summaryGenerator.d.ts +3 -3
  149. package/dist/summary/summaryGenerator.d.ts.map +1 -1
  150. package/dist/summary/summaryGenerator.js.map +1 -1
  151. package/dist/summary/summaryManager.d.ts +2 -2
  152. package/dist/summary/summaryManager.d.ts.map +1 -1
  153. package/dist/summary/summaryManager.js +10 -10
  154. package/dist/summary/summaryManager.js.map +1 -1
  155. package/dist/throttler.js +16 -16
  156. package/dist/throttler.js.map +1 -1
  157. package/dist/tsdoc-metadata.json +1 -1
  158. package/lib/blobManager.d.ts +4 -6
  159. package/lib/blobManager.d.ts.map +1 -1
  160. package/lib/blobManager.js +58 -80
  161. package/lib/blobManager.js.map +1 -1
  162. package/lib/connectionTelemetry.d.ts.map +1 -1
  163. package/lib/connectionTelemetry.js +76 -43
  164. package/lib/connectionTelemetry.js.map +1 -1
  165. package/lib/containerHandleContext.js +3 -3
  166. package/lib/containerHandleContext.js.map +1 -1
  167. package/lib/containerRuntime.d.ts +94 -102
  168. package/lib/containerRuntime.d.ts.map +1 -1
  169. package/lib/containerRuntime.js +437 -418
  170. package/lib/containerRuntime.js.map +1 -1
  171. package/lib/dataStore.js +11 -11
  172. package/lib/dataStore.js.map +1 -1
  173. package/lib/dataStoreContext.d.ts +2 -4
  174. package/lib/dataStoreContext.d.ts.map +1 -1
  175. package/lib/dataStoreContext.js +57 -60
  176. package/lib/dataStoreContext.js.map +1 -1
  177. package/lib/dataStoreRegistry.d.ts +3 -0
  178. package/lib/dataStoreRegistry.d.ts.map +1 -1
  179. package/lib/dataStoreRegistry.js +6 -3
  180. package/lib/dataStoreRegistry.js.map +1 -1
  181. package/lib/dataStores.d.ts +0 -2
  182. package/lib/dataStores.d.ts.map +1 -1
  183. package/lib/dataStores.js +4 -9
  184. package/lib/dataStores.js.map +1 -1
  185. package/lib/deltaManagerProxyBase.js +4 -4
  186. package/lib/deltaManagerProxyBase.js.map +1 -1
  187. package/lib/deltaManagerSummarizerProxy.js +6 -6
  188. package/lib/deltaManagerSummarizerProxy.js.map +1 -1
  189. package/lib/deltaScheduler.js.map +1 -1
  190. package/lib/error.d.ts.map +1 -1
  191. package/lib/error.js.map +1 -1
  192. package/lib/gc/garbageCollection.d.ts +6 -0
  193. package/lib/gc/garbageCollection.d.ts.map +1 -1
  194. package/lib/gc/garbageCollection.js +36 -25
  195. package/lib/gc/garbageCollection.js.map +1 -1
  196. package/lib/gc/gcConfigs.d.ts +1 -0
  197. package/lib/gc/gcConfigs.d.ts.map +1 -1
  198. package/lib/gc/gcConfigs.js +15 -5
  199. package/lib/gc/gcConfigs.js.map +1 -1
  200. package/lib/gc/gcDefinitions.d.ts +48 -28
  201. package/lib/gc/gcDefinitions.d.ts.map +1 -1
  202. package/lib/gc/gcDefinitions.js +9 -6
  203. package/lib/gc/gcDefinitions.js.map +1 -1
  204. package/lib/gc/gcSummaryDefinitions.d.ts +1 -1
  205. package/lib/gc/gcSummaryDefinitions.js.map +1 -1
  206. package/lib/gc/gcTelemetry.d.ts +3 -4
  207. package/lib/gc/gcTelemetry.d.ts.map +1 -1
  208. package/lib/gc/gcTelemetry.js +7 -8
  209. package/lib/gc/gcTelemetry.js.map +1 -1
  210. package/lib/gc/gcUnreferencedStateTracker.js +3 -3
  211. package/lib/gc/gcUnreferencedStateTracker.js.map +1 -1
  212. package/lib/gc/index.d.ts +2 -2
  213. package/lib/gc/index.d.ts.map +1 -1
  214. package/lib/gc/index.js +2 -2
  215. package/lib/gc/index.js.map +1 -1
  216. package/lib/id-compressor/appendOnlySortedMap.js.map +1 -1
  217. package/lib/id-compressor/idCompressor.js.map +1 -1
  218. package/lib/id-compressor/identifiers.d.ts +3 -3
  219. package/lib/id-compressor/identifiers.d.ts.map +1 -1
  220. package/lib/id-compressor/utilities.d.ts +3 -0
  221. package/lib/id-compressor/utilities.d.ts.map +1 -1
  222. package/lib/id-compressor/utilities.js +3 -0
  223. package/lib/id-compressor/utilities.js.map +1 -1
  224. package/lib/index.d.ts +5 -3
  225. package/lib/index.d.ts.map +1 -1
  226. package/lib/index.js +3 -1
  227. package/lib/index.js.map +1 -1
  228. package/lib/messageTypes.d.ts +137 -0
  229. package/lib/messageTypes.d.ts.map +1 -0
  230. package/lib/messageTypes.js +29 -0
  231. package/lib/messageTypes.js.map +1 -0
  232. package/lib/opLifecycle/batchManager.js +6 -6
  233. package/lib/opLifecycle/batchManager.js.map +1 -1
  234. package/lib/opLifecycle/definitions.d.ts +7 -3
  235. package/lib/opLifecycle/definitions.d.ts.map +1 -1
  236. package/lib/opLifecycle/definitions.js.map +1 -1
  237. package/lib/opLifecycle/opDecompressor.d.ts.map +1 -1
  238. package/lib/opLifecycle/opDecompressor.js +0 -4
  239. package/lib/opLifecycle/opDecompressor.js.map +1 -1
  240. package/lib/opLifecycle/opGroupingManager.d.ts.map +1 -1
  241. package/lib/opLifecycle/opGroupingManager.js.map +1 -1
  242. package/lib/opLifecycle/opSplitter.js +1 -1
  243. package/lib/opLifecycle/opSplitter.js.map +1 -1
  244. package/lib/opLifecycle/outbox.d.ts.map +1 -1
  245. package/lib/opLifecycle/outbox.js +7 -2
  246. package/lib/opLifecycle/outbox.js.map +1 -1
  247. package/lib/opLifecycle/remoteMessageProcessor.d.ts +17 -3
  248. package/lib/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
  249. package/lib/opLifecycle/remoteMessageProcessor.js +37 -24
  250. package/lib/opLifecycle/remoteMessageProcessor.js.map +1 -1
  251. package/lib/packageVersion.d.ts +1 -1
  252. package/lib/packageVersion.js +1 -1
  253. package/lib/packageVersion.js.map +1 -1
  254. package/lib/pendingStateManager.d.ts +4 -20
  255. package/lib/pendingStateManager.d.ts.map +1 -1
  256. package/lib/pendingStateManager.js +35 -45
  257. package/lib/pendingStateManager.js.map +1 -1
  258. package/lib/scheduleManager.js +6 -2
  259. package/lib/scheduleManager.js.map +1 -1
  260. package/lib/summary/orderedClientElection.d.ts +7 -4
  261. package/lib/summary/orderedClientElection.d.ts.map +1 -1
  262. package/lib/summary/orderedClientElection.js +54 -54
  263. package/lib/summary/orderedClientElection.js.map +1 -1
  264. package/lib/summary/runWhileConnectedCoordinator.d.ts +5 -0
  265. package/lib/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
  266. package/lib/summary/runWhileConnectedCoordinator.js +7 -6
  267. package/lib/summary/runWhileConnectedCoordinator.js.map +1 -1
  268. package/lib/summary/runningSummarizer.d.ts.map +1 -1
  269. package/lib/summary/runningSummarizer.js +40 -38
  270. package/lib/summary/runningSummarizer.js.map +1 -1
  271. package/lib/summary/summarizer.d.ts +2 -0
  272. package/lib/summary/summarizer.d.ts.map +1 -1
  273. package/lib/summary/summarizer.js +19 -9
  274. package/lib/summary/summarizer.js.map +1 -1
  275. package/lib/summary/summarizerClientElection.js +6 -6
  276. package/lib/summary/summarizerClientElection.js.map +1 -1
  277. package/lib/summary/summarizerHeuristics.js +9 -9
  278. package/lib/summary/summarizerHeuristics.js.map +1 -1
  279. package/lib/summary/summarizerNode/summarizerNode.d.ts +1 -1
  280. package/lib/summary/summarizerNode/summarizerNode.js +8 -8
  281. package/lib/summary/summarizerNode/summarizerNode.js.map +1 -1
  282. package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts +1 -1
  283. package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
  284. package/lib/summary/summarizerNode/summarizerNodeUtils.js +3 -3
  285. package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
  286. package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -2
  287. package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
  288. package/lib/summary/summarizerTypes.d.ts +107 -22
  289. package/lib/summary/summarizerTypes.d.ts.map +1 -1
  290. package/lib/summary/summarizerTypes.js.map +1 -1
  291. package/lib/summary/summaryCollection.d.ts +18 -2
  292. package/lib/summary/summaryCollection.d.ts.map +1 -1
  293. package/lib/summary/summaryCollection.js +23 -21
  294. package/lib/summary/summaryCollection.js.map +1 -1
  295. package/lib/summary/summaryFormat.d.ts +15 -6
  296. package/lib/summary/summaryFormat.d.ts.map +1 -1
  297. package/lib/summary/summaryFormat.js.map +1 -1
  298. package/lib/summary/summaryGenerator.d.ts +3 -3
  299. package/lib/summary/summaryGenerator.d.ts.map +1 -1
  300. package/lib/summary/summaryGenerator.js.map +1 -1
  301. package/lib/summary/summaryManager.d.ts +2 -2
  302. package/lib/summary/summaryManager.d.ts.map +1 -1
  303. package/lib/summary/summaryManager.js +9 -9
  304. package/lib/summary/summaryManager.js.map +1 -1
  305. package/lib/throttler.js +16 -16
  306. package/lib/throttler.js.map +1 -1
  307. package/package.json +32 -29
  308. package/src/blobManager.ts +67 -92
  309. package/src/connectionTelemetry.ts +97 -52
  310. package/src/containerRuntime.ts +351 -351
  311. package/src/dataStore.ts +3 -3
  312. package/src/dataStoreContext.ts +9 -13
  313. package/src/dataStoreRegistry.ts +3 -0
  314. package/src/dataStores.ts +5 -17
  315. package/src/error.ts +4 -1
  316. package/src/gc/garbageCollection.ts +25 -12
  317. package/src/gc/gcConfigs.ts +25 -7
  318. package/src/gc/gcDefinitions.ts +49 -29
  319. package/src/gc/gcSummaryDefinitions.ts +1 -1
  320. package/src/gc/gcTelemetry.ts +8 -8
  321. package/src/gc/index.ts +2 -6
  322. package/src/id-compressor/utilities.ts +3 -0
  323. package/src/index.ts +21 -5
  324. package/src/messageTypes.ts +228 -0
  325. package/src/opLifecycle/README.md +93 -68
  326. package/src/opLifecycle/definitions.ts +5 -1
  327. package/src/opLifecycle/opDecompressor.ts +0 -8
  328. package/src/opLifecycle/opGroupingManager.ts +2 -4
  329. package/src/opLifecycle/opSplitter.ts +2 -2
  330. package/src/opLifecycle/outbox.ts +3 -0
  331. package/src/opLifecycle/remoteMessageProcessor.ts +54 -33
  332. package/src/packageVersion.ts +1 -1
  333. package/src/pendingStateManager.ts +31 -52
  334. package/src/scheduleManager.ts +2 -0
  335. package/src/summary/orderedClientElection.ts +4 -1
  336. package/src/summary/runWhileConnectedCoordinator.ts +5 -1
  337. package/src/summary/runningSummarizer.ts +3 -1
  338. package/src/summary/summarizer.ts +21 -7
  339. package/src/summary/summarizerNode/summarizerNode.ts +1 -1
  340. package/src/summary/summarizerTypes.ts +96 -11
  341. package/src/summary/summaryCollection.ts +19 -1
  342. package/src/summary/summaryFormat.ts +11 -1
  343. package/src/summary/summaryGenerator.ts +3 -3
  344. package/src/summary/summaryManager.ts +2 -2
  345. package/src/gc/gcEarlyAdoption.md +0 -145
@@ -19,6 +19,7 @@ import { SummarizeReason } from "./summaryGenerator";
19
19
  /**
20
20
  * Similar to AbortSignal, but using promise instead of events
21
21
  * @param T - cancellation reason type
22
+ * @public
22
23
  */
23
24
  export interface ICancellationToken<T> {
24
25
  /** Tells if this cancellable token is cancelled */
@@ -30,11 +31,15 @@ export interface ICancellationToken<T> {
30
31
  readonly waitCancelled: Promise<T>;
31
32
  }
32
33
 
33
- /* Similar to AbortSignal, but using promise instead of events */
34
+ /**
35
+ * Similar to AbortSignal, but using promise instead of events
36
+ * @public
37
+ */
34
38
  export type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
35
39
 
36
40
  /**
37
41
  * Data required to update internal tracking state after receiving a Summary Ack.
42
+ * @public
38
43
  */
39
44
  export interface IRefreshSummaryAckOptions {
40
45
  /** Handle from the ack's summary op. */
@@ -47,6 +52,9 @@ export interface IRefreshSummaryAckOptions {
47
52
  readonly summaryLogger: ITelemetryLoggerExt;
48
53
  }
49
54
 
55
+ /**
56
+ * @public
57
+ */
50
58
  export interface ISummarizerInternalsProvider {
51
59
  /** Encapsulates the work to walk the internals of the running container to generate a summary */
52
60
  submitSummary(options: ISubmitSummaryOptions): Promise<SubmitSummaryResult>;
@@ -57,6 +65,7 @@ export interface ISummarizerInternalsProvider {
57
65
 
58
66
  /**
59
67
  * @deprecated Options that control the behavior of a running summarizer.
68
+ * @public
60
69
  * */
61
70
  export interface ISummarizerOptions {
62
71
  /**
@@ -68,11 +77,17 @@ export interface ISummarizerOptions {
68
77
  disableHeuristics: boolean;
69
78
  }
70
79
 
80
+ /**
81
+ * @public
82
+ */
71
83
  export interface ISummarizingWarning extends ContainerWarning {
72
84
  readonly errorType: "summarizingError";
73
85
  readonly logged: boolean;
74
86
  }
75
87
 
88
+ /**
89
+ * @public
90
+ */
76
91
  export interface IConnectableRuntime {
77
92
  readonly disposed: boolean;
78
93
  readonly connected: boolean;
@@ -80,6 +95,9 @@ export interface IConnectableRuntime {
80
95
  once(event: "connected" | "disconnected" | "dispose", listener: () => void): this;
81
96
  }
82
97
 
98
+ /**
99
+ * @public
100
+ */
83
101
  export interface ISummarizerRuntime extends IConnectableRuntime {
84
102
  readonly logger: ITelemetryLoggerExt;
85
103
  /** clientId of parent (non-summarizing) container that owns summarizer container */
@@ -97,18 +115,25 @@ export interface ISummarizerRuntime extends IConnectableRuntime {
97
115
  ): this;
98
116
  }
99
117
 
100
- /** Options affecting summarize behavior. */
118
+ /**
119
+ * Options affecting summarize behavior.
120
+ * @public
121
+ */
101
122
  export interface ISummarizeOptions {
102
123
  /** True to generate the full tree with no handle reuse optimizations; defaults to false */
103
124
  readonly fullTree?: boolean;
104
125
  /**
105
126
  * True to ask the server what the latest summary is first; defaults to false
106
127
  *
107
- * @deprecated - Summarize will not refresh latest snapshot state anymore.
128
+ * @deprecated Summarize will not refresh latest snapshot state anymore. Instead it updates the cache and closes.
129
+ * It's expected a new summarizer client will be created, likely by the same parent.
108
130
  */
109
131
  readonly refreshLatestAck?: boolean;
110
132
  }
111
133
 
134
+ /**
135
+ * @public
136
+ */
112
137
  export interface ISubmitSummaryOptions extends ISummarizeOptions {
113
138
  /** Logger to use for correlated summary events */
114
139
  readonly summaryLogger: ITelemetryLoggerExt;
@@ -118,12 +143,18 @@ export interface ISubmitSummaryOptions extends ISummarizeOptions {
118
143
  readonly finalAttempt?: boolean;
119
144
  }
120
145
 
146
+ /**
147
+ * @public
148
+ */
121
149
  export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
122
150
  /** Reason for generating summary. */
123
151
  readonly reason: string;
124
152
  }
125
153
 
126
- /** Options to use when enqueueing a summarize attempt. */
154
+ /**
155
+ * Options to use when enqueueing a summarize attempt.
156
+ * @public
157
+ */
127
158
  export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
128
159
  /** If specified, The summarize attempt will not occur until after this sequence number. */
129
160
  readonly afterSequenceNumber?: number;
@@ -140,6 +171,7 @@ export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
140
171
  /**
141
172
  * In addition to the normal summary tree + stats, this contains additional stats
142
173
  * only relevant at the root of the tree.
174
+ * @public
143
175
  */
144
176
  export interface IGeneratedSummaryStats extends ISummaryStats {
145
177
  /** The total number of data stores in the container. */
@@ -156,7 +188,10 @@ export interface IGeneratedSummaryStats extends ISummaryStats {
156
188
  readonly summaryNumber: number;
157
189
  }
158
190
 
159
- /** Base results for all submitSummary attempts. */
191
+ /**
192
+ * Base results for all submitSummary attempts.
193
+ * @public
194
+ */
160
195
  export interface IBaseSummarizeResult {
161
196
  readonly stage: "base";
162
197
  /** Error object related to failed summarize attempt. */
@@ -166,7 +201,10 @@ export interface IBaseSummarizeResult {
166
201
  readonly minimumSequenceNumber: number;
167
202
  }
168
203
 
169
- /** Results of submitSummary after generating the summary tree. */
204
+ /**
205
+ * Results of submitSummary after generating the summary tree.
206
+ * @public
207
+ */
170
208
  export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "stage"> {
171
209
  readonly stage: "generate";
172
210
  /** Generated summary tree. */
@@ -179,7 +217,10 @@ export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "
179
217
  readonly forcedFullTree: boolean;
180
218
  }
181
219
 
182
- /** Results of submitSummary after uploading the tree to storage. */
220
+ /**
221
+ * Results of submitSummary after uploading the tree to storage.
222
+ * @public
223
+ */
183
224
  export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "stage"> {
184
225
  readonly stage: "upload";
185
226
  /** The handle returned by storage pointing to the uploaded summary tree. */
@@ -188,7 +229,10 @@ export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "
188
229
  readonly uploadDuration: number;
189
230
  }
190
231
 
191
- /** Results of submitSummary after submitting the summarize op. */
232
+ /**
233
+ * Results of submitSummary after submitting the summarize op.
234
+ * @public
235
+ */
192
236
  export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stage" | "error"> {
193
237
  readonly stage: "submit";
194
238
  /** The client sequence number of the summarize op submitted for the summary. */
@@ -212,6 +256,7 @@ export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stag
212
256
  * 3. "upload" - the summary was uploaded to storage, and the result contains the server-provided handle
213
257
  *
214
258
  * 4. "submit" - the summarize op was submitted, and the result contains the op client sequence number.
259
+ * @public
215
260
  */
216
261
  export type SubmitSummaryResult =
217
262
  | IBaseSummarizeResult
@@ -219,34 +264,55 @@ export type SubmitSummaryResult =
219
264
  | IUploadSummaryResult
220
265
  | ISubmitSummaryOpResult;
221
266
 
222
- /** The stages of Summarize, used to describe how far progress succeeded in case of a failure at a later stage. */
267
+ /**
268
+ * The stages of Summarize, used to describe how far progress succeeded in case of a failure at a later stage.
269
+ * @public
270
+ */
223
271
  export type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
224
272
 
225
- /** Type for summarization failures that are retriable. */
273
+ /**
274
+ * Type for summarization failures that are retriable.
275
+ * @public
276
+ */
226
277
  export interface IRetriableFailureResult {
227
278
  readonly retryAfterSeconds?: number;
228
279
  }
229
280
 
230
- /** The data in summarizer result when submit summary stage fails. */
281
+ /**
282
+ * The data in summarizer result when submit summary stage fails.
283
+ * @public
284
+ */
231
285
  export interface SubmitSummaryFailureData extends IRetriableFailureResult {
232
286
  stage: SummaryStage;
233
287
  }
234
288
 
289
+ /**
290
+ * @public
291
+ */
235
292
  export interface IBroadcastSummaryResult {
236
293
  readonly summarizeOp: ISummaryOpMessage;
237
294
  readonly broadcastDuration: number;
238
295
  }
239
296
 
297
+ /**
298
+ * @public
299
+ */
240
300
  export interface IAckSummaryResult {
241
301
  readonly summaryAckOp: ISummaryAckMessage;
242
302
  readonly ackNackDuration: number;
243
303
  }
244
304
 
305
+ /**
306
+ * @public
307
+ */
245
308
  export interface INackSummaryResult extends IRetriableFailureResult {
246
309
  readonly summaryNackOp: ISummaryNackMessage;
247
310
  readonly ackNackDuration: number;
248
311
  }
249
312
 
313
+ /**
314
+ * @public
315
+ */
250
316
  export type SummarizeResultPart<TSuccess, TFailure = undefined> =
251
317
  | {
252
318
  success: true;
@@ -259,6 +325,9 @@ export type SummarizeResultPart<TSuccess, TFailure = undefined> =
259
325
  error: any;
260
326
  };
261
327
 
328
+ /**
329
+ * @public
330
+ */
262
331
  export interface ISummarizeResults {
263
332
  /** Resolves when we generate, upload, and submit the summary. */
264
333
  readonly summarySubmitted: Promise<
@@ -272,6 +341,9 @@ export interface ISummarizeResults {
272
341
  >;
273
342
  }
274
343
 
344
+ /**
345
+ * @public
346
+ */
275
347
  export type EnqueueSummarizeResult =
276
348
  | (ISummarizeResults & {
277
349
  /**
@@ -299,6 +371,9 @@ export type EnqueueSummarizeResult =
299
371
  readonly overridden?: undefined;
300
372
  };
301
373
 
374
+ /**
375
+ * @public
376
+ */
302
377
  export type SummarizerStopReason =
303
378
  /** Summarizer client failed to summarize in all 3 consecutive attempts. */
304
379
  | "failToSummarize"
@@ -325,16 +400,26 @@ export type SummarizerStopReason =
325
400
  */
326
401
  | "latestSummaryStateStale";
327
402
 
403
+ /**
404
+ * @public
405
+ */
328
406
  export interface ISummarizeEventProps {
329
407
  result: "success" | "failure" | "canceled";
330
408
  currentAttempt: number;
331
409
  maxAttempts: number;
332
410
  error?: any;
333
411
  }
412
+
413
+ /**
414
+ * @public
415
+ */
334
416
  export interface ISummarizerEvents extends IEvent {
335
417
  (event: "summarize", listener: (props: ISummarizeEventProps) => void);
336
418
  }
337
419
 
420
+ /**
421
+ * @public
422
+ */
338
423
  export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
339
424
  /**
340
425
  * Allows {@link ISummarizer} to be used with our {@link @fluidframework/core-interfaces#FluidObject} pattern.
@@ -19,6 +19,7 @@ import {
19
19
 
20
20
  /**
21
21
  * Interface for summary op messages with typed contents.
22
+ * @public
22
23
  */
23
24
  export interface ISummaryOpMessage extends ISequencedDocumentMessage {
24
25
  type: MessageType.Summarize;
@@ -27,6 +28,7 @@ export interface ISummaryOpMessage extends ISequencedDocumentMessage {
27
28
 
28
29
  /**
29
30
  * Interface for summary ack messages with typed contents.
31
+ * @public
30
32
  */
31
33
  export interface ISummaryAckMessage extends ISequencedDocumentMessage {
32
34
  type: MessageType.SummaryAck;
@@ -35,6 +37,7 @@ export interface ISummaryAckMessage extends ISequencedDocumentMessage {
35
37
 
36
38
  /**
37
39
  * Interface for summary nack messages with typed contents.
40
+ * @public
38
41
  */
39
42
  export interface ISummaryNackMessage extends ISequencedDocumentMessage {
40
43
  type: MessageType.SummaryNack;
@@ -44,6 +47,7 @@ export interface ISummaryNackMessage extends ISequencedDocumentMessage {
44
47
  /**
45
48
  * A single summary which can be tracked as it goes through its life cycle.
46
49
  * The life cycle is: Local to Broadcast to Acked/Nacked.
50
+ * @public
47
51
  */
48
52
  export interface ISummary {
49
53
  readonly clientId: string;
@@ -54,6 +58,7 @@ export interface ISummary {
54
58
 
55
59
  /**
56
60
  * A single summary which has already been acked by the server.
61
+ * @public
57
62
  */
58
63
  export interface IAckedSummary {
59
64
  readonly summaryOp: ISummaryOpMessage;
@@ -140,6 +145,7 @@ class Summary implements ISummary {
140
145
 
141
146
  /**
142
147
  * Watches summaries created by a specific client.
148
+ * @public
143
149
  */
144
150
  export interface IClientSummaryWatcher extends IDisposable {
145
151
  watchSummary(clientSequenceNumber: number): ISummary;
@@ -207,13 +213,23 @@ class ClientSummaryWatcher implements IClientSummaryWatcher {
207
213
  this._disposed = true;
208
214
  }
209
215
  }
210
-
216
+ /**
217
+ * @public
218
+ */
211
219
  export type OpActionEventName =
212
220
  | MessageType.Summarize
213
221
  | MessageType.SummaryAck
214
222
  | MessageType.SummaryNack
215
223
  | "default";
224
+
225
+ /**
226
+ * @public
227
+ */
216
228
  export type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
229
+
230
+ /**
231
+ * @public
232
+ */
217
233
  export interface ISummaryCollectionOpEvents extends IEvent {
218
234
  (event: OpActionEventName, listener: OpActionEventListener);
219
235
  }
@@ -222,6 +238,7 @@ export interface ISummaryCollectionOpEvents extends IEvent {
222
238
  * Data structure that looks at the op stream to track summaries as they
223
239
  * are broadcast, acked and nacked.
224
240
  * It provides functionality for watching specific summaries.
241
+ * @public
225
242
  */
226
243
  export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
227
244
  // key: clientId
@@ -405,6 +422,7 @@ export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEve
405
422
  private handleSummaryAck(op: ISummaryAckMessage) {
406
423
  const seq = op.contents.summaryProposal.summarySequenceNumber;
407
424
  const summary = this.pendingSummaries.get(seq);
425
+ // eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- optional chain is not logically equivalent
408
426
  if (!summary || summary.summaryOp === undefined) {
409
427
  // Summary ack without an op should be rare. We could fetch the
410
428
  // reference sequence number from the snapshot, but instead we
@@ -84,6 +84,10 @@ export function getAttributesFormatVersion(attributes: ReadFluidDataStoreAttribu
84
84
  export function hasIsolatedChannels(attributes: ReadFluidDataStoreAttributes): boolean {
85
85
  return !!attributes.summaryFormatVersion && !attributes.disableIsolatedChannels;
86
86
  }
87
+
88
+ /**
89
+ * @public
90
+ */
87
91
  export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
88
92
  readonly summaryFormatVersion: 1;
89
93
  /** The last message processed at the time of summary. Only primitive property types are added to the summary. */
@@ -98,6 +102,9 @@ export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGC
98
102
  readonly idCompressorEnabled?: boolean;
99
103
  }
100
104
 
105
+ /**
106
+ * @public
107
+ */
101
108
  export interface ICreateContainerMetadata {
102
109
  /** Runtime version of the container when it was first created */
103
110
  createContainerRuntimeVersion?: string;
@@ -105,7 +112,10 @@ export interface ICreateContainerMetadata {
105
112
  createContainerTimestamp?: number;
106
113
  }
107
114
 
108
- /** The properties of an ISequencedDocumentMessage to be stored in the metadata blob in summary. */
115
+ /**
116
+ * The properties of an ISequencedDocumentMessage to be stored in the metadata blob in summary.
117
+ * @public
118
+ */
109
119
  export type ISummaryMetadataMessage = Pick<
110
120
  ISequencedDocumentMessage,
111
121
  | "clientId"
@@ -47,12 +47,12 @@ export async function raceTimer<T>(
47
47
  cancellationToken?: ISummaryCancellationToken,
48
48
  ): Promise<raceTimerResult<T>> {
49
49
  const promises: Promise<raceTimerResult<T>>[] = [
50
- promise.then((value) => ({ result: "done", value } as const)),
51
- timer.then(({ timerResult: result }) => ({ result } as const)),
50
+ promise.then((value) => ({ result: "done", value }) as const),
51
+ timer.then(({ timerResult: result }) => ({ result }) as const),
52
52
  ];
53
53
  if (cancellationToken !== undefined) {
54
54
  promises.push(
55
- cancellationToken.waitCancelled.then(() => ({ result: "cancelled" } as const)),
55
+ cancellationToken.waitCancelled.then(() => ({ result: "cancelled" }) as const),
56
56
  );
57
57
  }
58
58
  return Promise.race(promises);
@@ -114,7 +114,7 @@ export class SummaryManager extends TypedEventEmitter<ISummarizerEvents> impleme
114
114
  parentLogger: ITelemetryBaseLogger,
115
115
  /** Creates summarizer by asking interactive container to spawn summarizing container and
116
116
  * get back its Summarizer instance. */
117
- private readonly requestSummarizerFn: () => Promise<ISummarizer>,
117
+ private readonly createSummarizerFn: () => Promise<ISummarizer>,
118
118
  private readonly startThrottler: IThrottler,
119
119
  {
120
120
  initialDelayMs = defaultInitialDelayMs,
@@ -264,7 +264,7 @@ export class SummaryManager extends TypedEventEmitter<ISummarizerEvents> impleme
264
264
  );
265
265
  this.state = SummaryManagerState.Running;
266
266
 
267
- const summarizer = await this.requestSummarizerFn();
267
+ const summarizer = await this.createSummarizerFn();
268
268
  this.summarizer = summarizer;
269
269
  this.summarizer.on("summarize", this.handleSummarizeEvent);
270
270
 
@@ -1,145 +0,0 @@
1
- # Garbage Collection: Advanced configuration for early adopters
2
-
3
- _For a technical overview of Garbage Collection, start with [GarbageCollection.md](./garbageCollection.md)_
4
-
5
- GC Sweep is not yet enabled by default, and until that time early adopters have several configuration options available
6
- for how to enable GC and monitor for any GC-impacting bugs that would need to be mitigated.
7
-
8
- Please refer to the section [Techniques Used for Configuration](./garbageCollection.md#techniques-used-for-configuration)
9
- before continuing, to ensure you're familiar with using "GC Options" and "Config Settings" for configuring GC.
10
-
11
- ## What's on by default
12
-
13
- GC Mark Phase is enabled by default, which includes marking objects that are ready to be deleted as Tombstones.
14
- FF will log an informational event if/when a Tombstoned object is loaded - a scenario that would represent data loss if Sweep were enabled.
15
- The eventName for the Tombstone log ends with `GC_Tombstone_DataStore_Requested`.
16
-
17
- There's a similar event logged long before an object is Tombstoned. Ater only 7 days (configurable), an unreferenced object is considered
18
- "Inactive", and FF will log if an Inactive object is loaded as well.
19
- The eventName for the Inactive log ends with `InactiveObject_Loaded`.
20
-
21
- ## Getting earlier signals: Shortening the InactiveObject timeout
22
-
23
- The default timeout for an unreferenced object to become "Inactive" is 7 days. This is intended to be long enough such that
24
- it's very unlikely to hit a legitimate case where an object is revived within the same session it was deleted (e.g. delete then undo).
25
- Based on your application's user experience, you may choose to shorten this timeout to get an earlier signal (but beware of false positives).
26
-
27
- To override the default InactiveObject timeout, use the `inactiveTimeoutMs` GC Option.
28
- There's also a Config Setting which can be used for testing (if the Config Provider allows overriding via localStorage/sessionStorage):
29
- `Fluid.GarbageCollection.TestOverride.InactiveTimeoutMs`
30
-
31
- ## Enabling Tombstone Enforcement
32
-
33
- By default, GC is marking objects as Tombstoned, but merely logging if they're used after that point.
34
- You can enable enforcement of Tombstone objects to simulate real Sweep while having the peace of mind
35
- that the data is not yet deleted from the user's file, and can be recovered.
36
-
37
- The first step is to prevent the Fluid Framework from loading a Tombstoned object (via `handle.get()` as described previously),
38
- by using this Config Setting:
39
-
40
- ```ts
41
- "Fluid.GarbageCollection.ThrowOnTombstoneLoad": true
42
- ```
43
-
44
- Now, even with `Fluid.GarbageCollection.ThrowOnTombstoneLoad` set to true, changes to a Tombstoned object will be allowed.
45
- This is required for the advanced recovery options to work, explained [below](#advanced-back-door-recovering-and-reviving-tombstoned-objects).
46
-
47
- To instruct FF to treat Tombstoned objects as if they are truly not present in the document, use this Config Setting:
48
-
49
- ```ts
50
- "Fluid.GarbageCollection.ThrowOnTombstoneUsage": true
51
- ```
52
-
53
- ### In case of emergency: Bumping the gcTombstoneGeneration
54
-
55
- GC includes a mechanism for Tombstone by which all new documents may be stamped with a "Generation" number,
56
- and if set then Tombstone is only enforceable for documents of the latest Generation. This number is specified
57
- via the `gcTombstoneGeneration` GC Option, and will not change over the lifetime of a given document.
58
-
59
- In case a bug is released that is found to cause GC errors, a bump to the gcTombstoneGeneration can be incuded
60
- with the fix, which will prevent any user pain for those potentially affected documents that were exposed to the bug.
61
-
62
- If gcTombstoneGeneration is unset, Tombstone enforcement will be enabled/disabled as otherwise configured.
63
- In other words, until you start using this, Tombstone enforcement will apply to all documents.
64
-
65
- ### Advanced "Back door": Recovering and reviving Tombstoned objects
66
-
67
- If your application has Tombstone enabled and your users are encountering Tombstones - even at the point where
68
- Tombstone enforcement is enabled - there is a way to still access these objects to recover them and property
69
- reference them ("revival"). However, please understand that this is an advanced and unsupported path that may
70
- be immediately deprecated at any time.
71
-
72
- As mentioned above, bumping the gcTombstoneGeneration will free up impacted documents, but that's a permanent
73
- mitigation - those documents will never be exposed to GC Tombstone or Sweep.
74
-
75
- If there's a particular codepath in your application where objects being loaded may be Tombstoned,
76
- you may use this advanced "back door" to recover them and then properly reference them, thus restoring the document.
77
- For this to work, you must disable the `Fluid.GarbageCollection.ThrowOnTombstoneUsage` Config Setting.
78
-
79
- When a Tombstoned object (via `handle.get()`) fails to load, the 404 response error object has an `underlyingResponseHeaders` with the
80
- `isTombstoned` flag set to true: i.e. `error.underlyingResponseHeaders?.isTombstoned === true`. In this case,
81
- you may turn around and use `IContainerRuntime.resolveHandle` with `allowTombstone: true` in `IRequest.headers` to request
82
- the object again - this time it will succeed.
83
-
84
- To be very clear once again - This path uses deprecated APIs (`resolveHandle`) and comes with no guarantees of support.
85
-
86
- ### Tombstones and the Summarizer Client
87
-
88
- Note: The Summarizer client will _never_ throw on usage or load of a Tombstoned object.
89
-
90
- ## Enabling Sweep
91
-
92
- To enable Sweep for the first time, set this GC Option:
93
-
94
- ```ts
95
- gcSweepGeneration: 0;
96
- ```
97
-
98
- This will enable sweep for all documents moving forward _as well as_ any documents created with `gcTombstoneGeneration: 0`
99
- (this is a special case in the code).
100
-
101
- ### A caveat...
102
-
103
- If you used `gcTombstoneGeneration` **and ever bumped it**, you should skip 0 here to avoid enabling Sweep for old / at-risk documents:
104
-
105
- ```ts
106
- gcSweepGeneration: 1;
107
- ```
108
-
109
- Remember, you can always bump `gcSweepGeneration` to disable Sweep for all existing documents and start fresh,
110
- in case a major bug is discovered and fixed.
111
-
112
- ### More about gcSweepGeneration and gcTombstoneGeneration
113
-
114
- `gcSweepGeneration` is persisted and immutable in the document, just like `gcTombstoneGeneration`.
115
- However, behavior differs in a few important ways.
116
-
117
- For Tombstone, if `gcTombstoneGeneration` is not set, Tombstone enforcement will be **enabled**.
118
- For Sweep however, if `gcSweepGeneration` is not set, Sweep enforcement will be **disabled**.
119
-
120
- This means that until the `gcSweepGeneration` GC Option is set, _no existing document will be eligible for Sweep, ever_.
121
- So all documents created since the most recent bump to the gcSweepGeneration will have Sweep enabled.
122
- Note that if `gcSweepGeneration` is set and matches, Tombstone Mode is off for the session and `gcTombstoneGeneration` is ignored.
123
-
124
- And as mentioned above, there is a special case when `gcSweepGeneration === 0`: Any document with `gcTombstoneGeneration: 0` will
125
- be eligible for Sweep as well. This was done for historical reasons due to circumstances during GC's development.
126
-
127
- ## More Advanced Configurations
128
-
129
- There are a handful of other configuration options/settings that can be used to tweak GC's behavior,
130
- mostly for testing. Please refer to the function [`generateGCConfigs` in gcConfigs.ts](./gcConfigs.ts) and the
131
- [setting/option names listed in gcDefinitions.ts](./gcDefinitions.ts) for the full story.
132
-
133
- Examples of available advanced configuration include:
134
-
135
- - Disabling GC permanently for new files
136
- - Overriding GC Mark/Sweep enablement for this session:
137
- - Disabling running GC Mark and/or Sweep phases for this session
138
- - Forcing GC Mark and/or Sweep to run for this session even if otherwise it would be disabled
139
- - Disabling Tombstone Mode (don't even mark objects as Tombstones)
140
- - Disabling the deletion of either DataStores or AttachmentBlobs independent of one another (when Sweep is enabled)
141
- - Overriding the default Session Expiry for new files (or disabling it altogether, which will also disable Tombstone/Sweep)
142
- - Overriding the Sweep Timeout, _independent of Session Expiry_, so use with care (for testing purposes only - data loss could occur)
143
- - Running in "Test Mode", where objects are deleted as soon as they're unreferenced
144
- - Force "Full GC" to run, which ignores incremental optimizations based on previously computed GC Data
145
- - Treat InactiveObjects like Tombstones: throw an error on load (with the same back door to follow-up with a successful request)