@fluidframework/container-runtime 1.4.0-121020 → 2.0.0-dev-rc.1.0.0.225277
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/.eslintrc.js +19 -29
- package/.mocharc.js +12 -0
- package/CHANGELOG.md +427 -0
- package/README.md +69 -0
- package/api-extractor-esm.json +4 -0
- package/api-extractor-lint.json +4 -0
- package/api-extractor.json +2 -2
- package/api-report/container-runtime.api.md +863 -0
- package/dist/{batchTracker.js → batchTracker.cjs} +9 -8
- package/dist/batchTracker.cjs.map +1 -0
- package/dist/batchTracker.d.ts +6 -5
- package/dist/batchTracker.d.ts.map +1 -1
- package/dist/blobManager.cjs +709 -0
- package/dist/blobManager.cjs.map +1 -0
- package/dist/blobManager.d.ts +140 -39
- package/dist/blobManager.d.ts.map +1 -1
- package/dist/connectionTelemetry.cjs +230 -0
- package/dist/connectionTelemetry.cjs.map +1 -0
- package/dist/connectionTelemetry.d.ts +2 -2
- package/dist/connectionTelemetry.d.ts.map +1 -1
- package/dist/container-runtime-alpha.d.ts +1690 -0
- package/dist/container-runtime-beta.d.ts +250 -0
- package/dist/container-runtime-public.d.ts +250 -0
- package/dist/container-runtime-untrimmed.d.ts +1805 -0
- package/dist/{containerHandleContext.js → containerHandleContext.cjs} +4 -2
- package/dist/containerHandleContext.cjs.map +1 -0
- package/dist/containerHandleContext.d.ts.map +1 -1
- package/dist/containerRuntime.cjs +2535 -0
- package/dist/containerRuntime.cjs.map +1 -0
- package/dist/containerRuntime.d.ts +458 -256
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/{dataStore.js → dataStore.cjs} +54 -45
- package/dist/dataStore.cjs.map +1 -0
- package/dist/dataStore.d.ts +2 -2
- package/dist/dataStore.d.ts.map +1 -1
- package/dist/{dataStoreContext.js → dataStoreContext.cjs} +343 -247
- package/dist/dataStoreContext.cjs.map +1 -0
- package/dist/dataStoreContext.d.ts +73 -41
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/{dataStoreContexts.js → dataStoreContexts.cjs} +19 -15
- package/dist/dataStoreContexts.cjs.map +1 -0
- package/dist/dataStoreContexts.d.ts +1 -1
- package/dist/dataStoreContexts.d.ts.map +1 -1
- package/dist/{dataStoreRegistry.js → dataStoreRegistry.cjs} +9 -4
- package/dist/dataStoreRegistry.cjs.map +1 -0
- package/dist/dataStoreRegistry.d.ts +3 -0
- package/dist/dataStoreRegistry.d.ts.map +1 -1
- package/dist/{dataStores.js → dataStores.cjs} +276 -124
- package/dist/dataStores.cjs.map +1 -0
- package/dist/dataStores.d.ts +56 -23
- package/dist/dataStores.d.ts.map +1 -1
- package/dist/deltaManagerProxyBase.cjs +77 -0
- package/dist/deltaManagerProxyBase.cjs.map +1 -0
- package/dist/deltaManagerProxyBase.d.ts +35 -0
- package/dist/deltaManagerProxyBase.d.ts.map +1 -0
- package/dist/deltaManagerSummarizerProxy.cjs +42 -0
- package/dist/deltaManagerSummarizerProxy.cjs.map +1 -0
- package/dist/deltaManagerSummarizerProxy.d.ts +19 -0
- package/dist/deltaManagerSummarizerProxy.d.ts.map +1 -0
- package/dist/{deltaScheduler.js → deltaScheduler.cjs} +25 -18
- package/dist/deltaScheduler.cjs.map +1 -0
- package/dist/deltaScheduler.d.ts +8 -6
- package/dist/deltaScheduler.d.ts.map +1 -1
- package/dist/error.cjs +21 -0
- package/dist/error.cjs.map +1 -0
- package/dist/error.d.ts +14 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/gc/garbageCollection.cjs +865 -0
- package/dist/gc/garbageCollection.cjs.map +1 -0
- package/dist/gc/garbageCollection.d.ts +224 -0
- package/dist/gc/garbageCollection.d.ts.map +1 -0
- package/dist/gc/gcConfigs.cjs +160 -0
- package/dist/gc/gcConfigs.cjs.map +1 -0
- package/dist/gc/gcConfigs.d.ts +23 -0
- package/dist/gc/gcConfigs.d.ts.map +1 -0
- package/dist/gc/gcDefinitions.cjs +96 -0
- package/dist/gc/gcDefinitions.cjs.map +1 -0
- package/dist/gc/gcDefinitions.d.ts +458 -0
- package/dist/gc/gcDefinitions.d.ts.map +1 -0
- package/dist/gc/gcHelpers.cjs +235 -0
- package/dist/gc/gcHelpers.cjs.map +1 -0
- package/dist/gc/gcHelpers.d.ts +71 -0
- package/dist/gc/gcHelpers.d.ts.map +1 -0
- package/dist/gc/gcReferenceGraphAlgorithm.cjs +49 -0
- package/dist/gc/gcReferenceGraphAlgorithm.cjs.map +1 -0
- package/dist/gc/gcReferenceGraphAlgorithm.d.ts +16 -0
- package/dist/gc/gcReferenceGraphAlgorithm.d.ts.map +1 -0
- package/dist/{summarizerTypes.js → gc/gcSummaryDefinitions.cjs} +1 -6
- package/dist/gc/gcSummaryDefinitions.cjs.map +1 -0
- package/dist/gc/gcSummaryDefinitions.d.ts +52 -0
- package/dist/gc/gcSummaryDefinitions.d.ts.map +1 -0
- package/dist/gc/gcSummaryStateTracker.cjs +213 -0
- package/dist/gc/gcSummaryStateTracker.cjs.map +1 -0
- package/dist/gc/gcSummaryStateTracker.d.ts +94 -0
- package/dist/gc/gcSummaryStateTracker.d.ts.map +1 -0
- package/dist/gc/gcTelemetry.cjs +307 -0
- package/dist/gc/gcTelemetry.cjs.map +1 -0
- package/dist/gc/gcTelemetry.d.ts +99 -0
- package/dist/gc/gcTelemetry.d.ts.map +1 -0
- package/dist/gc/gcUnreferencedStateTracker.cjs +118 -0
- package/dist/gc/gcUnreferencedStateTracker.cjs.map +1 -0
- package/dist/gc/gcUnreferencedStateTracker.d.ts +40 -0
- package/dist/gc/gcUnreferencedStateTracker.d.ts.map +1 -0
- package/dist/gc/index.cjs +44 -0
- package/dist/gc/index.cjs.map +1 -0
- package/dist/gc/index.d.ts +13 -0
- package/dist/gc/index.d.ts.map +1 -0
- package/dist/index.cjs +47 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +19 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/messageTypes.cjs +37 -0
- package/dist/messageTypes.cjs.map +1 -0
- package/dist/messageTypes.d.ts +142 -0
- package/dist/messageTypes.d.ts.map +1 -0
- package/dist/metadata.cjs +7 -0
- package/dist/metadata.cjs.map +1 -0
- package/dist/metadata.d.ts +24 -0
- package/dist/metadata.d.ts.map +1 -0
- package/dist/opLifecycle/batchManager.cjs +139 -0
- package/dist/opLifecycle/batchManager.cjs.map +1 -0
- package/dist/opLifecycle/batchManager.d.ts +48 -0
- package/dist/opLifecycle/batchManager.d.ts.map +1 -0
- package/dist/opLifecycle/definitions.cjs +7 -0
- package/dist/opLifecycle/definitions.cjs.map +1 -0
- package/dist/opLifecycle/definitions.d.ts +83 -0
- package/dist/opLifecycle/definitions.d.ts.map +1 -0
- package/dist/opLifecycle/index.cjs +26 -0
- package/dist/opLifecycle/index.cjs.map +1 -0
- package/dist/opLifecycle/index.d.ts +13 -0
- package/dist/opLifecycle/index.d.ts.map +1 -0
- package/dist/opLifecycle/opCompressor.cjs +84 -0
- package/dist/opLifecycle/opCompressor.cjs.map +1 -0
- package/dist/opLifecycle/opCompressor.d.ts +18 -0
- package/dist/opLifecycle/opCompressor.d.ts.map +1 -0
- package/dist/opLifecycle/opDecompressor.cjs +132 -0
- package/dist/opLifecycle/opDecompressor.cjs.map +1 -0
- package/dist/opLifecycle/opDecompressor.d.ts +25 -0
- package/dist/opLifecycle/opDecompressor.d.ts.map +1 -0
- package/dist/opLifecycle/opGroupingManager.cjs +95 -0
- package/dist/opLifecycle/opGroupingManager.cjs.map +1 -0
- package/dist/opLifecycle/opGroupingManager.d.ts +22 -0
- package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -0
- package/dist/opLifecycle/opSplitter.cjs +202 -0
- package/dist/opLifecycle/opSplitter.cjs.map +1 -0
- package/dist/opLifecycle/opSplitter.d.ts +61 -0
- package/dist/opLifecycle/opSplitter.d.ts.map +1 -0
- package/dist/opLifecycle/outbox.cjs +326 -0
- package/dist/opLifecycle/outbox.cjs.map +1 -0
- package/dist/opLifecycle/outbox.d.ts +104 -0
- package/dist/opLifecycle/outbox.d.ts.map +1 -0
- package/dist/opLifecycle/remoteMessageProcessor.cjs +136 -0
- package/dist/opLifecycle/remoteMessageProcessor.cjs.map +1 -0
- package/dist/opLifecycle/remoteMessageProcessor.d.ts +47 -0
- package/dist/opLifecycle/remoteMessageProcessor.d.ts.map +1 -0
- package/dist/opProperties.cjs +17 -0
- package/dist/opProperties.cjs.map +1 -0
- package/dist/opProperties.d.ts +7 -0
- package/dist/opProperties.d.ts.map +1 -0
- package/dist/{packageVersion.js → packageVersion.cjs} +2 -2
- package/dist/packageVersion.cjs.map +1 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/pendingStateManager.cjs +282 -0
- package/dist/pendingStateManager.cjs.map +1 -0
- package/dist/pendingStateManager.d.ts +32 -69
- package/dist/pendingStateManager.d.ts.map +1 -1
- package/dist/scheduleManager.cjs +258 -0
- package/dist/scheduleManager.cjs.map +1 -0
- package/dist/scheduleManager.d.ts +31 -0
- package/dist/scheduleManager.d.ts.map +1 -0
- package/dist/storageServiceWithAttachBlobs.cjs +32 -0
- package/dist/storageServiceWithAttachBlobs.cjs.map +1 -0
- package/dist/storageServiceWithAttachBlobs.d.ts +17 -0
- package/dist/storageServiceWithAttachBlobs.d.ts.map +1 -0
- package/dist/summary/index.cjs +51 -0
- package/dist/summary/index.cjs.map +1 -0
- package/dist/summary/index.d.ts +17 -0
- package/dist/summary/index.d.ts.map +1 -0
- package/dist/{orderedClientElection.js → summary/orderedClientElection.cjs} +100 -84
- package/dist/summary/orderedClientElection.cjs.map +1 -0
- package/{lib → dist/summary}/orderedClientElection.d.ts +41 -18
- package/dist/summary/orderedClientElection.d.ts.map +1 -0
- package/dist/{runWhileConnectedCoordinator.js → summary/runWhileConnectedCoordinator.cjs} +12 -10
- package/dist/summary/runWhileConnectedCoordinator.cjs.map +1 -0
- package/{lib → dist/summary}/runWhileConnectedCoordinator.d.ts +8 -2
- package/dist/summary/runWhileConnectedCoordinator.d.ts.map +1 -0
- package/dist/summary/runningSummarizer.cjs +679 -0
- package/dist/summary/runningSummarizer.cjs.map +1 -0
- package/dist/summary/runningSummarizer.d.ts +128 -0
- package/dist/summary/runningSummarizer.d.ts.map +1 -0
- package/dist/summary/summarizer.cjs +263 -0
- package/dist/summary/summarizer.cjs.map +1 -0
- package/dist/{summarizer.d.ts → summary/summarizer.d.ts} +18 -33
- package/dist/summary/summarizer.d.ts.map +1 -0
- package/dist/{summarizerClientElection.js → summary/summarizerClientElection.cjs} +15 -46
- package/dist/summary/summarizerClientElection.cjs.map +1 -0
- package/{lib → dist/summary}/summarizerClientElection.d.ts +4 -4
- package/dist/summary/summarizerClientElection.d.ts.map +1 -0
- package/dist/summary/summarizerHeuristics.cjs +156 -0
- package/dist/summary/summarizerHeuristics.cjs.map +1 -0
- package/{lib → dist/summary}/summarizerHeuristics.d.ts +28 -6
- package/dist/summary/summarizerHeuristics.d.ts.map +1 -0
- package/dist/summary/summarizerNode/index.cjs +12 -0
- package/dist/summary/summarizerNode/index.cjs.map +1 -0
- package/dist/summary/summarizerNode/index.d.ts +8 -0
- package/dist/summary/summarizerNode/index.d.ts.map +1 -0
- package/dist/summary/summarizerNode/summarizerNode.cjs +526 -0
- package/dist/summary/summarizerNode/summarizerNode.cjs.map +1 -0
- package/dist/summary/summarizerNode/summarizerNode.d.ts +167 -0
- package/dist/summary/summarizerNode/summarizerNode.d.ts.map +1 -0
- package/dist/summary/summarizerNode/summarizerNodeUtils.cjs +130 -0
- package/dist/summary/summarizerNode/summarizerNodeUtils.cjs.map +1 -0
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +121 -0
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -0
- package/dist/summary/summarizerNode/summarizerNodeWithGc.cjs +375 -0
- package/dist/summary/summarizerNode/summarizerNodeWithGc.cjs.map +1 -0
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts +153 -0
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -0
- package/dist/summary/summarizerTypes.cjs +7 -0
- package/dist/summary/summarizerTypes.cjs.map +1 -0
- package/{lib → dist/summary}/summarizerTypes.d.ts +233 -83
- package/dist/summary/summarizerTypes.d.ts.map +1 -0
- package/dist/{summaryCollection.js → summary/summaryCollection.cjs} +80 -49
- package/dist/summary/summaryCollection.cjs.map +1 -0
- package/dist/{summaryCollection.d.ts → summary/summaryCollection.d.ts} +23 -5
- package/dist/summary/summaryCollection.d.ts.map +1 -0
- package/dist/{summaryFormat.js → summary/summaryFormat.cjs} +29 -26
- package/dist/summary/summaryFormat.cjs.map +1 -0
- package/{lib → dist/summary}/summaryFormat.d.ts +25 -30
- package/dist/summary/summaryFormat.d.ts.map +1 -0
- package/dist/{summaryGenerator.js → summary/summaryGenerator.cjs} +162 -74
- package/dist/summary/summaryGenerator.cjs.map +1 -0
- package/dist/{summaryGenerator.d.ts → summary/summaryGenerator.d.ts} +53 -11
- package/dist/summary/summaryGenerator.d.ts.map +1 -0
- package/dist/{summaryManager.js → summary/summaryManager.cjs} +98 -55
- package/dist/summary/summaryManager.cjs.map +1 -0
- package/{lib → dist/summary}/summaryManager.d.ts +13 -11
- package/dist/summary/summaryManager.d.ts.map +1 -0
- package/dist/{throttler.js → throttler.cjs} +21 -21
- package/dist/throttler.cjs.map +1 -0
- package/dist/throttler.d.ts +2 -2
- package/dist/throttler.d.ts.map +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/lib/{batchTracker.d.ts → batchTracker.d.mts} +7 -6
- package/lib/batchTracker.d.mts.map +1 -0
- package/lib/{batchTracker.js → batchTracker.mjs} +9 -8
- package/lib/batchTracker.mjs.map +1 -0
- package/lib/blobManager.d.mts +196 -0
- package/lib/blobManager.d.mts.map +1 -0
- package/lib/blobManager.mjs +704 -0
- package/lib/blobManager.mjs.map +1 -0
- package/lib/{connectionTelemetry.d.ts → connectionTelemetry.d.mts} +3 -3
- package/lib/connectionTelemetry.d.mts.map +1 -0
- package/lib/connectionTelemetry.mjs +226 -0
- package/lib/connectionTelemetry.mjs.map +1 -0
- package/lib/container-runtime-alpha.d.mts +1690 -0
- package/lib/container-runtime-beta.d.mts +250 -0
- package/lib/container-runtime-public.d.mts +250 -0
- package/lib/container-runtime-untrimmed.d.mts +1805 -0
- package/lib/{containerHandleContext.d.ts → containerHandleContext.d.mts} +2 -2
- package/lib/containerHandleContext.d.mts.map +1 -0
- package/lib/{containerHandleContext.js → containerHandleContext.mjs} +4 -2
- package/lib/containerHandleContext.mjs.map +1 -0
- package/lib/containerRuntime.d.mts +813 -0
- package/lib/containerRuntime.d.mts.map +1 -0
- package/lib/containerRuntime.mjs +2530 -0
- package/lib/containerRuntime.mjs.map +1 -0
- package/lib/{dataStore.d.ts → dataStore.d.mts} +5 -5
- package/lib/dataStore.d.mts.map +1 -0
- package/lib/{dataStore.js → dataStore.mjs} +52 -43
- package/lib/dataStore.mjs.map +1 -0
- package/lib/{dataStoreContext.d.ts → dataStoreContext.d.mts} +75 -43
- package/lib/dataStoreContext.d.mts.map +1 -0
- package/lib/{dataStoreContext.js → dataStoreContext.mjs} +309 -213
- package/lib/dataStoreContext.mjs.map +1 -0
- package/lib/{dataStoreContexts.d.ts → dataStoreContexts.d.mts} +3 -3
- package/lib/dataStoreContexts.d.mts.map +1 -0
- package/lib/{dataStoreContexts.js → dataStoreContexts.mjs} +12 -8
- package/lib/dataStoreContexts.mjs.map +1 -0
- package/lib/{dataStoreRegistry.d.ts → dataStoreRegistry.d.mts} +4 -1
- package/lib/dataStoreRegistry.d.mts.map +1 -0
- package/lib/{dataStoreRegistry.js → dataStoreRegistry.mjs} +7 -6
- package/lib/dataStoreRegistry.mjs.map +1 -0
- package/lib/{dataStores.d.ts → dataStores.d.mts} +60 -27
- package/lib/dataStores.d.mts.map +1 -0
- package/lib/{dataStores.js → dataStores.mjs} +257 -105
- package/lib/dataStores.mjs.map +1 -0
- package/lib/deltaManagerProxyBase.d.mts +35 -0
- package/lib/deltaManagerProxyBase.d.mts.map +1 -0
- package/lib/deltaManagerProxyBase.mjs +73 -0
- package/lib/deltaManagerProxyBase.mjs.map +1 -0
- package/lib/deltaManagerSummarizerProxy.d.mts +19 -0
- package/lib/deltaManagerSummarizerProxy.d.mts.map +1 -0
- package/lib/deltaManagerSummarizerProxy.mjs +38 -0
- package/lib/deltaManagerSummarizerProxy.mjs.map +1 -0
- package/lib/{deltaScheduler.d.ts → deltaScheduler.d.mts} +9 -7
- package/lib/deltaScheduler.d.mts.map +1 -0
- package/lib/{deltaScheduler.js → deltaScheduler.mjs} +22 -15
- package/lib/deltaScheduler.mjs.map +1 -0
- package/lib/error.d.mts +14 -0
- package/lib/error.d.mts.map +1 -0
- package/lib/error.mjs +17 -0
- package/lib/error.mjs.map +1 -0
- package/lib/gc/garbageCollection.d.mts +224 -0
- package/lib/gc/garbageCollection.d.mts.map +1 -0
- package/lib/gc/garbageCollection.mjs +861 -0
- package/lib/gc/garbageCollection.mjs.map +1 -0
- package/lib/gc/gcConfigs.d.mts +23 -0
- package/lib/gc/gcConfigs.d.mts.map +1 -0
- package/lib/gc/gcConfigs.mjs +156 -0
- package/lib/gc/gcConfigs.mjs.map +1 -0
- package/lib/gc/gcDefinitions.d.mts +458 -0
- package/lib/gc/gcDefinitions.d.mts.map +1 -0
- package/lib/gc/gcDefinitions.mjs +93 -0
- package/lib/gc/gcDefinitions.mjs.map +1 -0
- package/lib/gc/gcHelpers.d.mts +71 -0
- package/lib/gc/gcHelpers.d.mts.map +1 -0
- package/lib/gc/gcHelpers.mjs +222 -0
- package/lib/gc/gcHelpers.mjs.map +1 -0
- package/lib/gc/gcReferenceGraphAlgorithm.d.mts +16 -0
- package/lib/gc/gcReferenceGraphAlgorithm.d.mts.map +1 -0
- package/lib/gc/gcReferenceGraphAlgorithm.mjs +45 -0
- package/lib/gc/gcReferenceGraphAlgorithm.mjs.map +1 -0
- package/lib/gc/gcSummaryDefinitions.d.mts +52 -0
- package/lib/gc/gcSummaryDefinitions.d.mts.map +1 -0
- package/lib/gc/gcSummaryDefinitions.mjs +6 -0
- package/lib/gc/gcSummaryDefinitions.mjs.map +1 -0
- package/lib/gc/gcSummaryStateTracker.d.mts +94 -0
- package/lib/gc/gcSummaryStateTracker.d.mts.map +1 -0
- package/lib/gc/gcSummaryStateTracker.mjs +209 -0
- package/lib/gc/gcSummaryStateTracker.mjs.map +1 -0
- package/lib/gc/gcTelemetry.d.mts +99 -0
- package/lib/gc/gcTelemetry.d.mts.map +1 -0
- package/lib/gc/gcTelemetry.mjs +302 -0
- package/lib/gc/gcTelemetry.mjs.map +1 -0
- package/lib/gc/gcUnreferencedStateTracker.d.mts +40 -0
- package/lib/gc/gcUnreferencedStateTracker.d.mts.map +1 -0
- package/lib/gc/gcUnreferencedStateTracker.mjs +114 -0
- package/lib/gc/gcUnreferencedStateTracker.mjs.map +1 -0
- package/lib/gc/index.d.mts +13 -0
- package/lib/gc/index.d.mts.map +1 -0
- package/lib/gc/index.mjs +12 -0
- package/lib/gc/index.mjs.map +1 -0
- package/lib/index.d.mts +25 -0
- package/lib/index.d.mts.map +1 -0
- package/lib/index.mjs +24 -0
- package/lib/index.mjs.map +1 -0
- package/lib/messageTypes.d.mts +142 -0
- package/lib/messageTypes.d.mts.map +1 -0
- package/lib/messageTypes.mjs +34 -0
- package/lib/messageTypes.mjs.map +1 -0
- package/lib/metadata.d.mts +24 -0
- package/lib/metadata.d.mts.map +1 -0
- package/lib/metadata.mjs +6 -0
- package/lib/metadata.mjs.map +1 -0
- package/lib/opLifecycle/batchManager.d.mts +48 -0
- package/lib/opLifecycle/batchManager.d.mts.map +1 -0
- package/lib/opLifecycle/batchManager.mjs +133 -0
- package/lib/opLifecycle/batchManager.mjs.map +1 -0
- package/lib/opLifecycle/definitions.d.mts +83 -0
- package/lib/opLifecycle/definitions.d.mts.map +1 -0
- package/lib/opLifecycle/definitions.mjs +6 -0
- package/lib/opLifecycle/definitions.mjs.map +1 -0
- package/lib/opLifecycle/index.d.mts +13 -0
- package/lib/opLifecycle/index.d.mts.map +1 -0
- package/lib/opLifecycle/index.mjs +12 -0
- package/lib/opLifecycle/index.mjs.map +1 -0
- package/lib/opLifecycle/opCompressor.d.mts +18 -0
- package/lib/opLifecycle/opCompressor.d.mts.map +1 -0
- package/lib/opLifecycle/opCompressor.mjs +80 -0
- package/lib/opLifecycle/opCompressor.mjs.map +1 -0
- package/lib/opLifecycle/opDecompressor.d.mts +25 -0
- package/lib/opLifecycle/opDecompressor.d.mts.map +1 -0
- package/lib/opLifecycle/opDecompressor.mjs +128 -0
- package/lib/opLifecycle/opDecompressor.mjs.map +1 -0
- package/lib/opLifecycle/opGroupingManager.d.mts +22 -0
- package/lib/opLifecycle/opGroupingManager.d.mts.map +1 -0
- package/lib/opLifecycle/opGroupingManager.mjs +91 -0
- package/lib/opLifecycle/opGroupingManager.mjs.map +1 -0
- package/lib/opLifecycle/opSplitter.d.mts +61 -0
- package/lib/opLifecycle/opSplitter.d.mts.map +1 -0
- package/lib/opLifecycle/opSplitter.mjs +197 -0
- package/lib/opLifecycle/opSplitter.mjs.map +1 -0
- package/lib/opLifecycle/outbox.d.mts +104 -0
- package/lib/opLifecycle/outbox.d.mts.map +1 -0
- package/lib/opLifecycle/outbox.mjs +321 -0
- package/lib/opLifecycle/outbox.mjs.map +1 -0
- package/lib/opLifecycle/remoteMessageProcessor.d.mts +47 -0
- package/lib/opLifecycle/remoteMessageProcessor.d.mts.map +1 -0
- package/lib/opLifecycle/remoteMessageProcessor.mjs +131 -0
- package/lib/opLifecycle/remoteMessageProcessor.mjs.map +1 -0
- package/lib/opProperties.d.mts +7 -0
- package/lib/opProperties.d.mts.map +1 -0
- package/lib/opProperties.mjs +13 -0
- package/lib/opProperties.mjs.map +1 -0
- package/lib/{packageVersion.d.ts → packageVersion.d.mts} +2 -2
- package/lib/packageVersion.d.mts.map +1 -0
- package/lib/{packageVersion.js → packageVersion.mjs} +2 -2
- package/lib/packageVersion.mjs.map +1 -0
- package/lib/{pendingStateManager.d.ts → pendingStateManager.d.mts} +33 -70
- package/lib/pendingStateManager.d.mts.map +1 -0
- package/lib/pendingStateManager.mjs +275 -0
- package/lib/pendingStateManager.mjs.map +1 -0
- package/lib/scheduleManager.d.mts +27 -0
- package/lib/scheduleManager.d.mts.map +1 -0
- package/lib/scheduleManager.mjs +254 -0
- package/lib/scheduleManager.mjs.map +1 -0
- package/lib/storageServiceWithAttachBlobs.d.mts +17 -0
- package/lib/storageServiceWithAttachBlobs.d.mts.map +1 -0
- package/lib/storageServiceWithAttachBlobs.mjs +28 -0
- package/lib/storageServiceWithAttachBlobs.mjs.map +1 -0
- package/lib/summary/index.d.mts +17 -0
- package/lib/summary/index.d.mts.map +1 -0
- package/lib/summary/index.mjs +16 -0
- package/lib/summary/index.mjs.map +1 -0
- package/{dist/orderedClientElection.d.ts → lib/summary/orderedClientElection.d.mts} +42 -23
- package/lib/summary/orderedClientElection.d.mts.map +1 -0
- package/lib/{orderedClientElection.js → summary/orderedClientElection.mjs} +95 -79
- package/lib/summary/orderedClientElection.mjs.map +1 -0
- package/{dist/runWhileConnectedCoordinator.d.ts → lib/summary/runWhileConnectedCoordinator.d.mts} +10 -4
- package/lib/summary/runWhileConnectedCoordinator.d.mts.map +1 -0
- package/lib/{runWhileConnectedCoordinator.js → summary/runWhileConnectedCoordinator.mjs} +12 -10
- package/lib/summary/runWhileConnectedCoordinator.mjs.map +1 -0
- package/lib/summary/runningSummarizer.d.mts +128 -0
- package/lib/summary/runningSummarizer.d.mts.map +1 -0
- package/lib/summary/runningSummarizer.mjs +675 -0
- package/lib/summary/runningSummarizer.mjs.map +1 -0
- package/lib/{summarizer.d.ts → summary/summarizer.d.mts} +21 -36
- package/lib/summary/summarizer.d.mts.map +1 -0
- package/lib/summary/summarizer.mjs +257 -0
- package/lib/summary/summarizer.mjs.map +1 -0
- package/{dist/summarizerClientElection.d.ts → lib/summary/summarizerClientElection.d.mts} +7 -7
- package/lib/summary/summarizerClientElection.d.mts.map +1 -0
- package/lib/{summarizerClientElection.js → summary/summarizerClientElection.mjs} +14 -45
- package/lib/summary/summarizerClientElection.mjs.map +1 -0
- package/{dist/summarizerHeuristics.d.ts → lib/summary/summarizerHeuristics.d.mts} +30 -8
- package/lib/summary/summarizerHeuristics.d.mts.map +1 -0
- package/lib/summary/summarizerHeuristics.mjs +151 -0
- package/lib/summary/summarizerHeuristics.mjs.map +1 -0
- package/lib/summary/summarizerNode/index.d.mts +8 -0
- package/lib/summary/summarizerNode/index.d.mts.map +1 -0
- package/lib/summary/summarizerNode/index.mjs +7 -0
- package/lib/summary/summarizerNode/index.mjs.map +1 -0
- package/lib/summary/summarizerNode/summarizerNode.d.mts +167 -0
- package/lib/summary/summarizerNode/summarizerNode.d.mts.map +1 -0
- package/lib/summary/summarizerNode/summarizerNode.mjs +521 -0
- package/lib/summary/summarizerNode/summarizerNode.mjs.map +1 -0
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.mts +121 -0
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.mts.map +1 -0
- package/lib/summary/summarizerNode/summarizerNodeUtils.mjs +123 -0
- package/lib/summary/summarizerNode/summarizerNodeUtils.mjs.map +1 -0
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.mts +153 -0
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.mts.map +1 -0
- package/lib/summary/summarizerNode/summarizerNodeWithGc.mjs +370 -0
- package/lib/summary/summarizerNode/summarizerNodeWithGc.mjs.map +1 -0
- package/{dist/summarizerTypes.d.ts → lib/summary/summarizerTypes.d.mts} +235 -85
- package/lib/summary/summarizerTypes.d.mts.map +1 -0
- package/lib/summary/summarizerTypes.mjs +6 -0
- package/lib/summary/summarizerTypes.mjs.map +1 -0
- package/lib/{summaryCollection.d.ts → summary/summaryCollection.d.mts} +24 -6
- package/lib/summary/summaryCollection.d.mts.map +1 -0
- package/lib/{summaryCollection.js → summary/summaryCollection.mjs} +76 -45
- package/lib/summary/summaryCollection.mjs.map +1 -0
- package/{dist/summaryFormat.d.ts → lib/summary/summaryFormat.d.mts} +26 -31
- package/lib/summary/summaryFormat.d.mts.map +1 -0
- package/lib/{summaryFormat.js → summary/summaryFormat.mjs} +30 -26
- package/lib/summary/summaryFormat.mjs.map +1 -0
- package/lib/summary/summaryGenerator.d.mts +127 -0
- package/lib/summary/summaryGenerator.d.mts.map +1 -0
- package/lib/{summaryGenerator.js → summary/summaryGenerator.mjs} +153 -67
- package/lib/summary/summaryGenerator.mjs.map +1 -0
- package/{dist/summaryManager.d.ts → lib/summary/summaryManager.d.mts} +16 -14
- package/lib/summary/summaryManager.d.mts.map +1 -0
- package/lib/{summaryManager.js → summary/summaryManager.mjs} +94 -51
- package/lib/summary/summaryManager.mjs.map +1 -0
- package/lib/{throttler.d.ts → throttler.d.mts} +3 -3
- package/lib/throttler.d.mts.map +1 -0
- package/lib/{throttler.js → throttler.mjs} +21 -21
- package/lib/throttler.mjs.map +1 -0
- package/package.json +199 -71
- package/prettier.config.cjs +8 -0
- package/src/batchTracker.ts +59 -54
- package/src/blobManager.ts +942 -294
- package/src/connectionTelemetry.ts +342 -252
- package/src/containerHandleContext.ts +27 -29
- package/src/containerRuntime.ts +3883 -3143
- package/src/dataStore.ts +170 -140
- package/src/dataStoreContext.ts +1166 -986
- package/src/dataStoreContexts.ts +176 -163
- package/src/dataStoreRegistry.ts +29 -21
- package/src/dataStores.ts +924 -678
- package/src/deltaManagerProxyBase.ts +111 -0
- package/src/deltaManagerSummarizerProxy.ts +49 -0
- package/src/deltaScheduler.ts +161 -156
- package/src/error.ts +21 -0
- package/src/gc/garbageCollection.md +106 -0
- package/src/gc/garbageCollection.ts +1157 -0
- package/src/gc/gcConfigs.ts +224 -0
- package/src/gc/gcDefinitions.ts +524 -0
- package/src/gc/gcHelpers.ts +284 -0
- package/src/gc/gcReferenceGraphAlgorithm.ts +52 -0
- package/src/gc/gcSummaryDefinitions.ts +54 -0
- package/src/gc/gcSummaryStateTracker.ts +299 -0
- package/src/gc/gcTelemetry.ts +433 -0
- package/src/gc/gcUnreferencedStateTracker.ts +153 -0
- package/src/gc/index.ts +60 -0
- package/src/index.ts +101 -74
- package/src/messageTypes.ts +238 -0
- package/src/metadata.ts +26 -0
- package/src/opLifecycle/README.md +321 -0
- package/src/opLifecycle/batchManager.ts +179 -0
- package/src/opLifecycle/definitions.ts +89 -0
- package/src/opLifecycle/index.ts +19 -0
- package/src/opLifecycle/opCompressor.ts +99 -0
- package/src/opLifecycle/opDecompressor.ts +190 -0
- package/src/opLifecycle/opGroupingManager.ts +133 -0
- package/src/opLifecycle/opSplitter.ts +279 -0
- package/src/opLifecycle/outbox.ts +474 -0
- package/src/opLifecycle/remoteMessageProcessor.ts +175 -0
- package/src/opProperties.ts +21 -0
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +396 -465
- package/src/scheduleManager.ts +358 -0
- package/src/storageServiceWithAttachBlobs.ts +38 -0
- package/src/summary/index.ts +109 -0
- package/src/summary/orderedClientElection.ts +571 -0
- package/src/summary/runWhileConnectedCoordinator.ts +117 -0
- package/src/summary/runningSummarizer.ts +920 -0
- package/src/summary/summarizer.ts +352 -0
- package/src/summary/summarizerClientElection.ts +140 -0
- package/src/summary/summarizerHeuristics.ts +227 -0
- package/src/summary/summarizerNode/index.ts +12 -0
- package/src/summary/summarizerNode/summarizerNode.ts +725 -0
- package/src/summary/summarizerNode/summarizerNodeUtils.ts +206 -0
- package/src/summary/summarizerNode/summarizerNodeWithGc.ts +571 -0
- package/src/summary/summarizerTypes.ts +631 -0
- package/src/summary/summaryCollection.ts +474 -0
- package/src/summary/summaryFormat.ts +249 -0
- package/src/summary/summaryGenerator.ts +539 -0
- package/src/summary/summaryManager.ts +452 -0
- package/src/throttler.ts +131 -122
- package/tsc-multi.test.json +4 -0
- package/tsconfig.json +11 -13
- package/dist/batchTracker.js.map +0 -1
- package/dist/blobManager.js +0 -249
- package/dist/blobManager.js.map +0 -1
- package/dist/connectionTelemetry.js +0 -178
- package/dist/connectionTelemetry.js.map +0 -1
- package/dist/containerHandleContext.js.map +0 -1
- package/dist/containerRuntime.js +0 -2174
- package/dist/containerRuntime.js.map +0 -1
- package/dist/dataStore.js.map +0 -1
- package/dist/dataStoreContext.js.map +0 -1
- package/dist/dataStoreContexts.js.map +0 -1
- package/dist/dataStoreRegistry.js.map +0 -1
- package/dist/dataStores.js.map +0 -1
- package/dist/deltaScheduler.js.map +0 -1
- package/dist/garbageCollection.d.ts +0 -319
- package/dist/garbageCollection.d.ts.map +0 -1
- package/dist/garbageCollection.js +0 -993
- package/dist/garbageCollection.js.map +0 -1
- package/dist/index.js +0 -33
- package/dist/index.js.map +0 -1
- package/dist/opTelemetry.d.ts +0 -22
- package/dist/opTelemetry.d.ts.map +0 -1
- package/dist/opTelemetry.js +0 -60
- package/dist/opTelemetry.js.map +0 -1
- package/dist/orderedClientElection.d.ts.map +0 -1
- package/dist/orderedClientElection.js.map +0 -1
- package/dist/packageVersion.js.map +0 -1
- package/dist/pendingStateManager.js +0 -346
- package/dist/pendingStateManager.js.map +0 -1
- package/dist/runWhileConnectedCoordinator.d.ts.map +0 -1
- package/dist/runWhileConnectedCoordinator.js.map +0 -1
- package/dist/runningSummarizer.d.ts +0 -93
- package/dist/runningSummarizer.d.ts.map +0 -1
- package/dist/runningSummarizer.js +0 -384
- package/dist/runningSummarizer.js.map +0 -1
- package/dist/serializedSnapshotStorage.d.ts +0 -58
- package/dist/serializedSnapshotStorage.d.ts.map +0 -1
- package/dist/serializedSnapshotStorage.js +0 -108
- package/dist/serializedSnapshotStorage.js.map +0 -1
- package/dist/summarizer.d.ts.map +0 -1
- package/dist/summarizer.js +0 -348
- package/dist/summarizer.js.map +0 -1
- package/dist/summarizerClientElection.d.ts.map +0 -1
- package/dist/summarizerClientElection.js.map +0 -1
- package/dist/summarizerHandle.d.ts +0 -12
- package/dist/summarizerHandle.d.ts.map +0 -1
- package/dist/summarizerHandle.js +0 -22
- package/dist/summarizerHandle.js.map +0 -1
- package/dist/summarizerHeuristics.d.ts.map +0 -1
- package/dist/summarizerHeuristics.js +0 -84
- package/dist/summarizerHeuristics.js.map +0 -1
- package/dist/summarizerTypes.d.ts.map +0 -1
- package/dist/summarizerTypes.js.map +0 -1
- package/dist/summaryCollection.d.ts.map +0 -1
- package/dist/summaryCollection.js.map +0 -1
- package/dist/summaryFormat.d.ts.map +0 -1
- package/dist/summaryFormat.js.map +0 -1
- package/dist/summaryGenerator.d.ts.map +0 -1
- package/dist/summaryGenerator.js.map +0 -1
- package/dist/summaryManager.d.ts.map +0 -1
- package/dist/summaryManager.js.map +0 -1
- package/dist/throttler.js.map +0 -1
- package/garbageCollection.md +0 -41
- package/lib/batchTracker.d.ts.map +0 -1
- package/lib/batchTracker.js.map +0 -1
- package/lib/blobManager.d.ts +0 -95
- package/lib/blobManager.d.ts.map +0 -1
- package/lib/blobManager.js +0 -244
- package/lib/blobManager.js.map +0 -1
- package/lib/connectionTelemetry.d.ts.map +0 -1
- package/lib/connectionTelemetry.js +0 -174
- package/lib/connectionTelemetry.js.map +0 -1
- package/lib/containerHandleContext.d.ts.map +0 -1
- package/lib/containerHandleContext.js.map +0 -1
- package/lib/containerRuntime.d.ts +0 -615
- package/lib/containerRuntime.d.ts.map +0 -1
- package/lib/containerRuntime.js +0 -2166
- package/lib/containerRuntime.js.map +0 -1
- package/lib/dataStore.d.ts.map +0 -1
- package/lib/dataStore.js.map +0 -1
- package/lib/dataStoreContext.d.ts.map +0 -1
- package/lib/dataStoreContext.js.map +0 -1
- package/lib/dataStoreContexts.d.ts.map +0 -1
- package/lib/dataStoreContexts.js.map +0 -1
- package/lib/dataStoreRegistry.d.ts.map +0 -1
- package/lib/dataStoreRegistry.js.map +0 -1
- package/lib/dataStores.d.ts.map +0 -1
- package/lib/dataStores.js.map +0 -1
- package/lib/deltaScheduler.d.ts.map +0 -1
- package/lib/deltaScheduler.js.map +0 -1
- package/lib/garbageCollection.d.ts +0 -319
- package/lib/garbageCollection.d.ts.map +0 -1
- package/lib/garbageCollection.js +0 -989
- package/lib/garbageCollection.js.map +0 -1
- package/lib/index.d.ts +0 -14
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -13
- package/lib/index.js.map +0 -1
- package/lib/opTelemetry.d.ts +0 -22
- package/lib/opTelemetry.d.ts.map +0 -1
- package/lib/opTelemetry.js +0 -56
- package/lib/opTelemetry.js.map +0 -1
- package/lib/orderedClientElection.d.ts.map +0 -1
- package/lib/orderedClientElection.js.map +0 -1
- package/lib/packageVersion.d.ts.map +0 -1
- package/lib/packageVersion.js.map +0 -1
- package/lib/pendingStateManager.d.ts.map +0 -1
- package/lib/pendingStateManager.js +0 -339
- package/lib/pendingStateManager.js.map +0 -1
- package/lib/runWhileConnectedCoordinator.d.ts.map +0 -1
- package/lib/runWhileConnectedCoordinator.js.map +0 -1
- package/lib/runningSummarizer.d.ts +0 -93
- package/lib/runningSummarizer.d.ts.map +0 -1
- package/lib/runningSummarizer.js +0 -380
- package/lib/runningSummarizer.js.map +0 -1
- package/lib/serializedSnapshotStorage.d.ts +0 -58
- package/lib/serializedSnapshotStorage.d.ts.map +0 -1
- package/lib/serializedSnapshotStorage.js +0 -104
- package/lib/serializedSnapshotStorage.js.map +0 -1
- package/lib/summarizer.d.ts.map +0 -1
- package/lib/summarizer.js +0 -342
- package/lib/summarizer.js.map +0 -1
- package/lib/summarizerClientElection.d.ts.map +0 -1
- package/lib/summarizerClientElection.js.map +0 -1
- package/lib/summarizerHandle.d.ts +0 -12
- package/lib/summarizerHandle.d.ts.map +0 -1
- package/lib/summarizerHandle.js +0 -18
- package/lib/summarizerHandle.js.map +0 -1
- package/lib/summarizerHeuristics.d.ts.map +0 -1
- package/lib/summarizerHeuristics.js +0 -79
- package/lib/summarizerHeuristics.js.map +0 -1
- package/lib/summarizerTypes.d.ts.map +0 -1
- package/lib/summarizerTypes.js +0 -9
- package/lib/summarizerTypes.js.map +0 -1
- package/lib/summaryCollection.d.ts.map +0 -1
- package/lib/summaryCollection.js.map +0 -1
- package/lib/summaryFormat.d.ts.map +0 -1
- package/lib/summaryFormat.js.map +0 -1
- package/lib/summaryGenerator.d.ts +0 -85
- package/lib/summaryGenerator.d.ts.map +0 -1
- package/lib/summaryGenerator.js.map +0 -1
- package/lib/summaryManager.d.ts.map +0 -1
- package/lib/summaryManager.js.map +0 -1
- package/lib/throttler.d.ts.map +0 -1
- package/lib/throttler.js.map +0 -1
- package/src/garbageCollection.ts +0 -1434
- package/src/opTelemetry.ts +0 -71
- package/src/orderedClientElection.ts +0 -511
- package/src/runWhileConnectedCoordinator.ts +0 -106
- package/src/runningSummarizer.ts +0 -550
- package/src/serializedSnapshotStorage.ts +0 -146
- package/src/summarizer.ts +0 -438
- package/src/summarizerClientElection.ts +0 -161
- package/src/summarizerHandle.ts +0 -21
- package/src/summarizerHeuristics.ts +0 -108
- package/src/summarizerTypes.ts +0 -462
- package/src/summaryCollection.ts +0 -406
- package/src/summaryFormat.ts +0 -239
- package/src/summaryGenerator.ts +0 -427
- package/src/summaryManager.ts +0 -368
- package/tsconfig.esnext.json +0 -7
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.UnreferencedState = exports.GarbageCollectionMessageType = exports.GCNodeType = exports.defaultSweepGracePeriodMs = exports.defaultSessionExpiryDurationMs = exports.defaultInactiveTimeoutMs = exports.maxSnapshotCacheExpiryMs = exports.oneDayMs = exports.disableAttachmentBlobSweepKey = exports.disableDatastoreSweepKey = exports.gcVersionUpgradeToV4Key = exports.throwOnTombstoneUsageKey = exports.throwOnTombstoneLoadOverrideKey = exports.disableTombstoneKey = exports.runSessionExpiryKey = exports.gcTestModeKey = exports.runSweepKey = exports.runGCKey = exports.gcGenerationOptionName = exports.gcDisableThrowOnTombstoneLoadOptionName = exports.nextGCVersion = exports.stableGCVersion = void 0;
|
|
8
|
+
/** The stable/default version of GC Data */
|
|
9
|
+
exports.stableGCVersion = 3;
|
|
10
|
+
/** The next version of GC Data, to bump to in case we need to regenerate all GC Data across all files. */
|
|
11
|
+
exports.nextGCVersion = 4;
|
|
12
|
+
/**
|
|
13
|
+
* This undocumented GC Option (on ContainerRuntime Options) allows an app to disable throwing an error when tombstone
|
|
14
|
+
* object is loaded (requested), merely logging a message instead.
|
|
15
|
+
*
|
|
16
|
+
* By default, attempting to load a Tombstoned object will result in an error.
|
|
17
|
+
*/
|
|
18
|
+
exports.gcDisableThrowOnTombstoneLoadOptionName = "gcDisableThrowOnTombstoneLoad";
|
|
19
|
+
/**
|
|
20
|
+
* This undocumented GC Option (on ContainerRuntime Options) allows configuring which documents can have Sweep enabled.
|
|
21
|
+
* This provides a way to disable both Tombstone Enforcement and Sweep.
|
|
22
|
+
*
|
|
23
|
+
* If unset, Tombstone Enforcement + Sweep will operate as otherwise configured.
|
|
24
|
+
* Otherwise, the Sweep Phase will be disabled for documents where persisted value doesn't match what is passed into this session.
|
|
25
|
+
* This provides a way to disallow Sweep for old documents that may be too difficult for an app to repair,
|
|
26
|
+
* in case a bug is found that violates GC's assumptions.
|
|
27
|
+
*
|
|
28
|
+
* @see GCFeatureMatrix (gcGeneration)
|
|
29
|
+
*/
|
|
30
|
+
exports.gcGenerationOptionName = "gcGeneration";
|
|
31
|
+
/** Config key to turn GC on / off. */
|
|
32
|
+
exports.runGCKey = "Fluid.GarbageCollection.RunGC";
|
|
33
|
+
/** Config key to turn GC sweep on / off. */
|
|
34
|
+
exports.runSweepKey = "Fluid.GarbageCollection.RunSweep";
|
|
35
|
+
/** Config key to turn GC test mode on / off. */
|
|
36
|
+
exports.gcTestModeKey = "Fluid.GarbageCollection.GCTestMode";
|
|
37
|
+
/** Config key to expire a session after a set period of time. Defaults to true. */
|
|
38
|
+
exports.runSessionExpiryKey = "Fluid.GarbageCollection.RunSessionExpiry";
|
|
39
|
+
/** Config key to disable the tombstone feature, i.e., tombstone information is not read / written into summary. */
|
|
40
|
+
exports.disableTombstoneKey = "Fluid.GarbageCollection.DisableTombstone";
|
|
41
|
+
/** Config key to override throwing an error when tombstone object is loaded (requested). */
|
|
42
|
+
exports.throwOnTombstoneLoadOverrideKey = "Fluid.GarbageCollection.ThrowOnTombstoneLoadOverride";
|
|
43
|
+
/** Config key to enable throwing an error when tombstone object is used (e.g. outgoing or incoming ops). */
|
|
44
|
+
exports.throwOnTombstoneUsageKey = "Fluid.GarbageCollection.ThrowOnTombstoneUsage";
|
|
45
|
+
/** Config key to enable GC version upgrade. */
|
|
46
|
+
exports.gcVersionUpgradeToV4Key = "Fluid.GarbageCollection.GCVersionUpgradeToV4";
|
|
47
|
+
/** Config key to disable GC sweep for datastores. */
|
|
48
|
+
exports.disableDatastoreSweepKey = "Fluid.GarbageCollection.DisableDataStoreSweep";
|
|
49
|
+
/** Config key to disable GC sweep for attachment blobs. */
|
|
50
|
+
exports.disableAttachmentBlobSweepKey = "Fluid.GarbageCollection.DisableAttachmentBlobSweep";
|
|
51
|
+
// One day in milliseconds.
|
|
52
|
+
exports.oneDayMs = 1 * 24 * 60 * 60 * 1000;
|
|
53
|
+
/**
|
|
54
|
+
* The maximum snapshot cache expiry in the driver. This is used to calculate the tombstone timeout.
|
|
55
|
+
* Tombstone timeout = session expiry timeout + snapshot cache expiry timeout + a buffer.
|
|
56
|
+
* The snapshot cache expiry timeout cannot be known precisely but the upper bound is 5 days, i.e., any snapshot
|
|
57
|
+
* in cache will be invalidated before 5 days.
|
|
58
|
+
*/
|
|
59
|
+
exports.maxSnapshotCacheExpiryMs = 5 * exports.oneDayMs;
|
|
60
|
+
exports.defaultInactiveTimeoutMs = 7 * exports.oneDayMs; // 7 days
|
|
61
|
+
exports.defaultSessionExpiryDurationMs = 30 * exports.oneDayMs; // 30 days
|
|
62
|
+
exports.defaultSweepGracePeriodMs = 1 * exports.oneDayMs; // 1 day
|
|
63
|
+
/**
|
|
64
|
+
* The types of GC nodes in the GC reference graph.
|
|
65
|
+
* @alpha
|
|
66
|
+
*/
|
|
67
|
+
exports.GCNodeType = {
|
|
68
|
+
// Nodes that are for data stores.
|
|
69
|
+
DataStore: "DataStore",
|
|
70
|
+
// Nodes that are within a data store. For example, DDS nodes.
|
|
71
|
+
SubDataStore: "SubDataStore",
|
|
72
|
+
// Nodes that are for attachment blobs, i.e., blobs uploaded via BlobManager.
|
|
73
|
+
Blob: "Blob",
|
|
74
|
+
// Nodes that are neither of the above. For example, root node.
|
|
75
|
+
Other: "Other",
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* The type of a garbage collection message.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
exports.GarbageCollectionMessageType = {
|
|
82
|
+
/** Message sent directing GC to delete the given nodes */
|
|
83
|
+
Sweep: "Sweep",
|
|
84
|
+
};
|
|
85
|
+
/** The state of node that is unreferenced. */
|
|
86
|
+
exports.UnreferencedState = {
|
|
87
|
+
/** The node is active, i.e., it can become referenced again. */
|
|
88
|
+
Active: "Active",
|
|
89
|
+
/** The node is inactive, i.e., it should not become referenced. */
|
|
90
|
+
Inactive: "Inactive",
|
|
91
|
+
/** The node is ready to be tombstoned */
|
|
92
|
+
TombstoneReady: "TombstoneReady",
|
|
93
|
+
/** The node is ready to be deleted by the sweep phase. */
|
|
94
|
+
SweepReady: "SweepReady",
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=gcDefinitions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gcDefinitions.cjs","sourceRoot":"","sources":["../../src/gc/gcDefinitions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA0BH,4CAA4C;AAC/B,QAAA,eAAe,GAAc,CAAC,CAAC;AAC5C,0GAA0G;AAC7F,QAAA,aAAa,GAAc,CAAC,CAAC;AAE1C;;;;;GAKG;AACU,QAAA,uCAAuC,GAAG,+BAA+B,CAAC;AAEvF;;;;;;;;;;GAUG;AACU,QAAA,sBAA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O;CACL,CAAC;AAyPX,8CAA8C;AACjC,QAAA,iBAAiB,GAAG;IAChC,gEAAgE;IAChE,MAAM,EAAE,QAAQ;IAChB,mEAAmE;IACnE,QAAQ,EAAE,UAAU;IACpB,yCAAyC;IACzC,cAAc,EAAE,gBAAgB;IAChC,0DAA0D;IAC1D,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ICriticalContainerError } from \"@fluidframework/container-definitions\";\nimport { IRequest } from \"@fluidframework/core-interfaces\";\nimport { ISnapshotTree } from \"@fluidframework/protocol-definitions\";\nimport {\n\tIGarbageCollectionData,\n\tIGarbageCollectionDetailsBase,\n\tISummarizeResult,\n\tITelemetryContext,\n} from \"@fluidframework/runtime-definitions\";\nimport { ReadAndParseBlob } from \"@fluidframework/runtime-utils\";\nimport { ITelemetryLoggerExt } from \"@fluidframework/telemetry-utils\";\nimport {\n\tIContainerRuntimeMetadata,\n\tICreateContainerMetadata,\n\tIRefreshSummaryResult,\n} from \"../summary\";\nimport { RuntimeHeaderData } from \"../containerRuntime\";\nimport { ContainerRuntimeGCMessage } from \"../messageTypes\";\n\n/**\n * @alpha\n */\nexport type GCVersion = number;\n\n/** The stable/default version of GC Data */\nexport const stableGCVersion: GCVersion = 3;\n/** The next version of GC Data, to bump to in case we need to regenerate all GC Data across all files. */\nexport const nextGCVersion: GCVersion = 4;\n\n/**\n * This undocumented GC Option (on ContainerRuntime Options) allows an app to disable throwing an error when tombstone\n * object is loaded (requested), merely logging a message instead.\n *\n * By default, attempting to load a Tombstoned object will result in an error.\n */\nexport const gcDisableThrowOnTombstoneLoadOptionName = \"gcDisableThrowOnTombstoneLoad\";\n\n/**\n * This undocumented GC Option (on ContainerRuntime Options) allows configuring which documents can have Sweep enabled.\n * This provides a way to disable both Tombstone Enforcement and Sweep.\n *\n * If unset, Tombstone Enforcement + Sweep will operate as otherwise configured.\n * Otherwise, the Sweep Phase will be disabled for documents where persisted value doesn't match what is passed into this session.\n * This provides a way to disallow Sweep for old documents that may be too difficult for an app to repair,\n * in case a bug is found that violates GC's assumptions.\n *\n * @see GCFeatureMatrix (gcGeneration)\n */\nexport const gcGenerationOptionName = \"gcGeneration\";\n\n/** Config key to turn GC on / off. */\nexport const runGCKey = \"Fluid.GarbageCollection.RunGC\";\n/** Config key to turn GC sweep on / off. */\nexport const runSweepKey = \"Fluid.GarbageCollection.RunSweep\";\n/** Config key to turn GC test mode on / off. */\nexport const gcTestModeKey = \"Fluid.GarbageCollection.GCTestMode\";\n/** Config key to expire a session after a set period of time. Defaults to true. */\nexport const runSessionExpiryKey = \"Fluid.GarbageCollection.RunSessionExpiry\";\n/** Config key to disable the tombstone feature, i.e., tombstone information is not read / written into summary. */\nexport const disableTombstoneKey = \"Fluid.GarbageCollection.DisableTombstone\";\n/** Config key to override throwing an error when tombstone object is loaded (requested). */\nexport const throwOnTombstoneLoadOverrideKey =\n\t\"Fluid.GarbageCollection.ThrowOnTombstoneLoadOverride\";\n/** Config key to enable throwing an error when tombstone object is used (e.g. outgoing or incoming ops). */\nexport const throwOnTombstoneUsageKey = \"Fluid.GarbageCollection.ThrowOnTombstoneUsage\";\n/** Config key to enable GC version upgrade. */\nexport const gcVersionUpgradeToV4Key = \"Fluid.GarbageCollection.GCVersionUpgradeToV4\";\n/** Config key to disable GC sweep for datastores. */\nexport const disableDatastoreSweepKey = \"Fluid.GarbageCollection.DisableDataStoreSweep\";\n/** Config key to disable GC sweep for attachment blobs. */\nexport const disableAttachmentBlobSweepKey = \"Fluid.GarbageCollection.DisableAttachmentBlobSweep\";\n\n// One day in milliseconds.\nexport const oneDayMs = 1 * 24 * 60 * 60 * 1000;\n\n/**\n * The maximum snapshot cache expiry in the driver. This is used to calculate the tombstone timeout.\n * Tombstone timeout = session expiry timeout + snapshot cache expiry timeout + a buffer.\n * The snapshot cache expiry timeout cannot be known precisely but the upper bound is 5 days, i.e., any snapshot\n * in cache will be invalidated before 5 days.\n */\nexport const maxSnapshotCacheExpiryMs = 5 * oneDayMs;\n\nexport const defaultInactiveTimeoutMs = 7 * oneDayMs; // 7 days\nexport const defaultSessionExpiryDurationMs = 30 * oneDayMs; // 30 days\nexport const defaultSweepGracePeriodMs = 1 * oneDayMs; // 1 day\n\n/**\n * @see IGCMetadata.gcFeatureMatrix and @see gcGenerationOptionName\n * @alpha\n */\nexport type GCFeatureMatrix =\n\t| {\n\t\t\t/**\n\t\t\t * The GC Generation value in effect when this file was created.\n\t\t\t * Gives a way for an app to disqualify old files from GC Sweep.\n\t\t\t * Provided via Container Runtime Options.\n\t\t\t */\n\t\t\tgcGeneration?: number;\n\t\t\t/** Deprecated property from legacy type. Will not be set concurrently with gcGeneration */\n\t\t\ttombstoneGeneration?: undefined;\n\t }\n\t| {\n\t\t\t/**\n\t\t\t * The Tombstone Generation value in effect when this file was created.\n\t\t\t * Legacy - new containers would get gcGeneration instead (if anything)\n\t\t\t */\n\t\t\ttombstoneGeneration: number;\n\t };\n\n/**\n * Deprecated properties formerly included in @see IGCMetadata.\n * These may be found in old snapshots, so we need to support them for backwards compatibility.\n */\nexport interface IGCMetadata_Deprecated {\n\t/**\n\t * How long to wait after an object is unreferenced before deleting it via GC Sweep\n\t *\n\t * @deprecated Replaced by @see IGCMetadata.tombstoneTimeoutMs\n\t */\n\treadonly sweepTimeoutMs?: number;\n}\n\n/**\n * GC-specific metadata to be written into the summary.\n *\n * @alpha\n */\nexport interface IGCMetadata {\n\t/**\n\t * The version of the GC code that was run to generate the GC data that is written in the summary.\n\t * If the persisted value doesn't match the current value in the code, saved GC data will be discarded and regenerated from scratch.\n\t * Also, used to determine whether GC is enabled for this container or not:\n\t * - A value of 0 or undefined means GC is disabled.\n\t * - A value greater than 0 means GC is enabled.\n\t */\n\treadonly gcFeature?: GCVersion;\n\n\t/**\n\t * A collection of different numerical \"Generations\" for different features,\n\t * used to determine feature availability over time.\n\t * This info may come from multiple sources (FF code, config service, app via Container Runtime Options),\n\t * and pertains to aspects of the document that may be fixed for its lifetime.\n\t *\n\t * For each dimension, if the persisted value doesn't match the currently provided value,\n\t * then this file does not support the corresponding feature as currently implemented.\n\t *\n\t * Guidance is that if no value is provided at runtime, it should result in the current default behavior.\n\t */\n\treadonly gcFeatureMatrix?: GCFeatureMatrix;\n\t/**\n\t * Tells whether the GC sweep phase is enabled for this container.\n\t * - True means sweep phase is enabled.\n\t * - False means sweep phase is disabled. If GC is disabled as per gcFeature, sweep is also disabled.\n\t *\n\t * @deprecated use GCFeatureMatrix.gcGeneration instead. @see GCFeatureMatrix.gcGeneration\n\t */\n\treadonly sweepEnabled?: boolean;\n\t/** If this is present, the session for this container will expire after this time and the container will close */\n\treadonly sessionExpiryTimeoutMs?: number;\n\t/**\n\t * How long to wait after an object is unreferenced before it becomes a Tombstone.\n\t *\n\t * After this point, there's a grace period before the object is deleted.\n\t * @see IGCRuntimeOptions.sweepGracePeriodMs\n\t *\n\t * So the full sweep timeout in a session is tombstoneTimeoutMs + sweepGracePeriodMs.\n\t */\n\treadonly tombstoneTimeoutMs?: number;\n}\n\n/**\n * The statistics of the system state after a garbage collection mark phase run.\n * @alpha\n */\nexport interface IMarkPhaseStats {\n\t/** The number of nodes in the container. */\n\tnodeCount: number;\n\t/** The number of data stores in the container. */\n\tdataStoreCount: number;\n\t/** The number of attachment blobs in the container. */\n\tattachmentBlobCount: number;\n\t/** The number of unreferenced nodes in the container. */\n\tunrefNodeCount: number;\n\t/** The number of unreferenced data stores in the container. */\n\tunrefDataStoreCount: number;\n\t/** The number of unreferenced attachment blobs in the container. */\n\tunrefAttachmentBlobCount: number;\n\t/** The number of nodes whose reference state updated since last GC run. */\n\tupdatedNodeCount: number;\n\t/** The number of data stores whose reference state updated since last GC run. */\n\tupdatedDataStoreCount: number;\n\t/** The number of attachment blobs whose reference state updated since last GC run. */\n\tupdatedAttachmentBlobCount: number;\n}\n\n/**\n * The statistics of the system state after a garbage collection sweep phase run.\n * @alpha\n */\nexport interface ISweepPhaseStats {\n\t/** The number of nodes in the lifetime of the container. */\n\tlifetimeNodeCount: number;\n\t/** The number of data stores in the lifetime of the container. */\n\tlifetimeDataStoreCount: number;\n\t/** The number of attachment blobs in the lifetime of the container. */\n\tlifetimeAttachmentBlobCount: number;\n\t/** The number of deleted nodes in the container. */\n\tdeletedNodeCount: number;\n\t/** The number of deleted data stores in the container. */\n\tdeletedDataStoreCount: number;\n\t/** The number of deleted attachment blobs in the container. */\n\tdeletedAttachmentBlobCount: number;\n}\n\n/**\n * The statistics of the system state after a garbage collection run.\n * @alpha\n */\nexport interface IGCStats extends IMarkPhaseStats, ISweepPhaseStats {}\n\n/**\n * The types of GC nodes in the GC reference graph.\n * @alpha\n */\nexport const GCNodeType = {\n\t// Nodes that are for data stores.\n\tDataStore: \"DataStore\",\n\t// Nodes that are within a data store. For example, DDS nodes.\n\tSubDataStore: \"SubDataStore\",\n\t// Nodes that are for attachment blobs, i.e., blobs uploaded via BlobManager.\n\tBlob: \"Blob\",\n\t// Nodes that are neither of the above. For example, root node.\n\tOther: \"Other\",\n};\n\n/**\n * @alpha\n */\nexport type GCNodeType = (typeof GCNodeType)[keyof typeof GCNodeType];\n\n/**\n * The type of a garbage collection message.\n * @internal\n */\nexport const GarbageCollectionMessageType = {\n\t/** Message sent directing GC to delete the given nodes */\n\tSweep: \"Sweep\",\n} as const;\n\n/**\n * @internal\n */\nexport type GarbageCollectionMessageType =\n\t(typeof GarbageCollectionMessageType)[keyof typeof GarbageCollectionMessageType];\n\n/**\n * The garbage collection sweep message.\n * @internal\n */\nexport interface ISweepMessage {\n\ttype: \"Sweep\";\n\t// The ids of nodes that are deleted.\n\tdeletedNodeIds: string[];\n}\n\n/**\n * Type for a message to be used for sending / received garbage collection messages.\n * @internal\n */\nexport type GarbageCollectionMessage = ISweepMessage;\n\n/**\n * Defines the APIs for the runtime object to be passed to the garbage collector.\n */\nexport interface IGarbageCollectionRuntime {\n\t/** Before GC runs, called to notify the runtime to update any pending GC state. */\n\tupdateStateBeforeGC(): Promise<void>;\n\t/** Returns the garbage collection data of the runtime. */\n\tgetGCData(fullGC?: boolean): Promise<IGarbageCollectionData>;\n\t/** After GC has run, called to notify the runtime of routes that are used in it. */\n\tupdateUsedRoutes(usedRoutes: readonly string[]): void;\n\t/** After GC has run, called to notify the runtime of routes that are unused in it. */\n\tupdateUnusedRoutes(unusedRoutes: readonly string[]): void;\n\t/**\n\t * After GC has run and identified nodes that are sweep ready, called to delete the sweep ready nodes. The runtime\n\t * should return the routes of nodes that were deleted.\n\t * @param sweepReadyRoutes - The routes of nodes that are sweep ready and should be deleted.\n\t */\n\tdeleteSweepReadyNodes(sweepReadyRoutes: readonly string[]): readonly string[];\n\t/** Called to notify the runtime of routes that are tombstones. */\n\tupdateTombstonedRoutes(tombstoneRoutes: readonly string[]): void;\n\t/** Returns a referenced timestamp to be used to track unreferenced nodes. */\n\tgetCurrentReferenceTimestampMs(): number | undefined;\n\t/** Returns the type of the GC node. */\n\tgetNodeType(nodePath: string): GCNodeType;\n\t/** Called when the runtime should close because of an error. */\n\tcloseFn: (error?: ICriticalContainerError) => void;\n}\n\n/** Defines the contract for the garbage collector. */\nexport interface IGarbageCollector {\n\t/** Tells whether GC should run or not. */\n\treadonly shouldRunGC: boolean;\n\t/** Tells whether the GC state in summary needs to be reset in the next summary. */\n\treadonly summaryStateNeedsReset: boolean;\n\t/** The count of data stores whose GC state updated since the last summary. */\n\treadonly updatedDSCountSinceLastSummary: number;\n\t/** Tells whether tombstone feature is enabled and enforced. */\n\treadonly tombstoneEnforcementAllowed: boolean;\n\t/** Tells whether loading a tombstone object should fail or merely log. */\n\treadonly throwOnTombstoneLoad: boolean;\n\t/** Tells whether using a tombstone object should fail or merely log. */\n\treadonly throwOnTombstoneUsage: boolean;\n\t/** Initialize the state from the base snapshot after its creation. */\n\tinitializeBaseState(): Promise<void>;\n\t/** Run garbage collection and update the reference / used state of the system. */\n\tcollectGarbage(\n\t\toptions: {\n\t\t\tlogger?: ITelemetryLoggerExt;\n\t\t\trunSweep?: boolean;\n\t\t\tfullGC?: boolean;\n\t\t},\n\t\ttelemetryContext?: ITelemetryContext,\n\t): Promise<IGCStats | undefined>;\n\t/** Summarizes the GC data and returns it as a summary tree. */\n\tsummarize(\n\t\tfullTree: boolean,\n\t\ttrackState: boolean,\n\t\ttelemetryContext?: ITelemetryContext,\n\t): ISummarizeResult | undefined;\n\t/** Returns the garbage collector specific metadata to be written into the summary. */\n\tgetMetadata(): IGCMetadata;\n\t/** Returns the GC details generated from the base snapshot. */\n\tgetBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;\n\t/** Called when the latest summary of the system has been refreshed. */\n\trefreshLatestSummary(result: IRefreshSummaryResult): Promise<void>;\n\t/**\n\t * Called when a node with the given path is updated. If the node is inactive or tombstoned, this will log an error\n\t * or throw an error if failing on incorrect usage is configured.\n\t */\n\tnodeUpdated(\n\t\tnodePath: string,\n\t\treason: \"Loaded\" | \"Changed\",\n\t\ttimestampMs?: number,\n\t\tpackagePath?: readonly string[],\n\t\trequest?: IRequest,\n\t\theaderData?: RuntimeHeaderData,\n\t): void;\n\t/** Called when a reference is added to a node. Used to identify nodes that were referenced between summaries. */\n\taddedOutboundReference(fromNodePath: string, toNodePath: string): void;\n\t/** Called to process a garbage collection message. */\n\tprocessMessage(message: ContainerRuntimeGCMessage, local: boolean): void;\n\t/** Returns true if this node has been deleted by GC during sweep phase. */\n\tisNodeDeleted(nodePath: string): boolean;\n\tsetConnectionState(connected: boolean, clientId?: string): void;\n\tdispose(): void;\n}\n\n/** Parameters necessary for creating a GarbageCollector. */\nexport interface IGarbageCollectorCreateParams {\n\treadonly runtime: IGarbageCollectionRuntime;\n\treadonly gcOptions: IGCRuntimeOptions;\n\treadonly baseLogger: ITelemetryLoggerExt;\n\treadonly existing: boolean;\n\treadonly metadata: IContainerRuntimeMetadata | undefined;\n\treadonly createContainerMetadata: ICreateContainerMetadata;\n\treadonly baseSnapshot: ISnapshotTree | undefined;\n\treadonly isSummarizerClient: boolean;\n\treadonly getNodePackagePath: (nodePath: string) => Promise<readonly string[] | undefined>;\n\treadonly getLastSummaryTimestampMs: () => number | undefined;\n\treadonly readAndParseBlob: ReadAndParseBlob;\n\treadonly submitMessage: (message: ContainerRuntimeGCMessage) => void;\n}\n\n/**\n * @alpha\n */\nexport interface IGCRuntimeOptions {\n\t/**\n\t * Flag that if true, will enable running garbage collection (GC) for a new container.\n\t *\n\t * GC has mark phase and sweep phase. In mark phase, unreferenced objects are identified\n\t * and marked as such in the summary. This option enables the mark phase.\n\t * In sweep phase, unreferenced objects are eventually deleted from the container if they meet certain conditions.\n\t * Sweep phase can be enabled using the \"enableGCSweep\" option.\n\t *\n\t * Note: This setting is persisted in the container's summary and cannot be changed.\n\t */\n\tgcAllowed?: boolean;\n\n\t/**\n\t * Flag that if true, will disable garbage collection for the session.\n\t * Can be used to disable running GC on containers where it is allowed via the gcAllowed option.\n\t */\n\tdisableGC?: boolean;\n\n\t/**\n\t * Flag that if true, will enable the full Sweep Phase of garbage collection for this session,\n\t * where Tombstoned objects are permanently deleted from the container.\n\t *\n\t * IMPORTANT: This only applies if this document is allowed to run Sweep Phase.\n\t *\n\t * Current default behavior is for Sweep Phase not to delete Tombstoned objects,\n\t * but merely to prevent them from being loaded.\n\t */\n\tenableGCSweep?: true;\n\n\t/**\n\t * Flag that will bypass optimizations and generate GC data for all nodes irrespective of whether a node\n\t * changed or not.\n\t */\n\trunFullGC?: boolean;\n\n\t/**\n\t * Maximum session duration for a new container. If not present, a default value will be used.\n\t *\n\t * Note: This setting is persisted in the container's summary and cannot be changed.\n\t */\n\tsessionExpiryTimeoutMs?: number;\n\n\t/**\n\t * Delay between when Tombstone should run and when the object should be deleted.\n\t * This grace period gives a chance to intervene to recover if needed, before Sweep deletes the object.\n\t * If not present, a default (non-zero) value will be used.\n\t */\n\tsweepGracePeriodMs?: number;\n\n\t/**\n\t * Allows additional GC options to be passed.\n\t */\n\t[key: string]: any;\n}\n\n/**\n * The configurations for Garbage Collector that determines what runs and how.\n */\nexport interface IGarbageCollectorConfigs {\n\t/**\n\t * Tracks if GC is enabled for this document. This is specified during document creation and doesn't change\n\t * throughout its lifetime.\n\t */\n\treadonly gcEnabled: boolean;\n\t/**\n\t * Tracks if sweep phase is enabled for this document. This is specified during document creation and doesn't change\n\t * throughout its lifetime.\n\t */\n\treadonly sweepEnabled: boolean;\n\t/**\n\t * Tracks if GC should run or not. Even if GC is enabled for a document (see gcEnabled), it can be explicitly\n\t * disabled via runtime options or feature flags.\n\t */\n\treadonly shouldRunGC: boolean;\n\t/**\n\t * Tracks if sweep phase should run or not. Even if the sweep phase is enabled for a document (see sweepEnabled), it\n\t * can be explicitly disabled via feature flags. It also won't run if session expiry is not enabled.\n\t */\n\treadonly shouldRunSweep: boolean;\n\t/**\n\t * If true, bypass optimizations and generate GC data for all nodes irrespective of whether a node changed or not.\n\t */\n\treadonly runFullGC: boolean | undefined;\n\t/** The time in ms to expire a session for a client for gc. */\n\treadonly sessionExpiryTimeoutMs: number | undefined;\n\t/** The time after which an unreferenced node can be Tombstoned - i.e. GC knows it can't be referenced again (revived). */\n\treadonly tombstoneTimeoutMs: number | undefined;\n\t/**\n\t * The delay between tombstone and sweep. Not persisted, so concurrent sessions may use different values.\n\t * Sweep is implemented in an eventually-consistent way so this is acceptable.\n\t */\n\treadonly sweepGracePeriodMs: number;\n\t/** The time after which an unreferenced node is inactive. */\n\treadonly inactiveTimeoutMs: number;\n\t/** Tracks whether GC should run in test mode. In this mode, unreferenced objects are deleted immediately. */\n\treadonly testMode: boolean;\n\t/**\n\t * Tracks whether GC should run in tombstone mode. In this mode, objects are marked as tombstones as a step along the\n\t * way before they are fully deleted.\n\t * In interactive (non-summarizer) clients, tombstone objects behave as if they are deleted, i.e., access to them\n\t * is not allowed. However, these objects can be accessed after referencing them first. It is used as a \"warning\"\n\t * step before sweep, where objects wrongly marked as unreferenced can be recovered.\n\t */\n\treadonly tombstoneMode: boolean;\n\t/** @see GCFeatureMatrix. */\n\treadonly persistedGcFeatureMatrix: GCFeatureMatrix | undefined;\n\t/** The version of GC in the base snapshot. */\n\treadonly gcVersionInBaseSnapshot: GCVersion | undefined;\n\t/** The current version of GC data in the running code */\n\treadonly gcVersionInEffect: GCVersion;\n\t/** It is easier for users to diagnose InactiveObject usage if we throw on load, which this option enables */\n\treadonly throwOnInactiveLoad: boolean | undefined;\n\t/** If true, throw an error when a tombstone data store is retrieved */\n\treadonly throwOnTombstoneLoad: boolean;\n\t/** If true, throw an error when a tombstone data store is used. */\n\treadonly throwOnTombstoneUsage: boolean;\n}\n\n/** The state of node that is unreferenced. */\nexport const UnreferencedState = {\n\t/** The node is active, i.e., it can become referenced again. */\n\tActive: \"Active\",\n\t/** The node is inactive, i.e., it should not become referenced. */\n\tInactive: \"Inactive\",\n\t/** The node is ready to be tombstoned */\n\tTombstoneReady: \"TombstoneReady\",\n\t/** The node is ready to be deleted by the sweep phase. */\n\tSweepReady: \"SweepReady\",\n} as const;\nexport type UnreferencedState = (typeof UnreferencedState)[keyof typeof UnreferencedState];\n\n/**\n * Represents the result of a GC run.\n */\nexport interface IGCResult {\n\t/** The ids of nodes that are referenced in the referenced graph */\n\treferencedNodeIds: string[];\n\t/** The ids of nodes that are not-referenced or deleted in the referenced graph */\n\tdeletedNodeIds: string[];\n}\n"]}
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { ICriticalContainerError } from "@fluidframework/container-definitions";
|
|
6
|
+
import { IRequest } from "@fluidframework/core-interfaces";
|
|
7
|
+
import { ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
8
|
+
import { IGarbageCollectionData, IGarbageCollectionDetailsBase, ISummarizeResult, ITelemetryContext } from "@fluidframework/runtime-definitions";
|
|
9
|
+
import { ReadAndParseBlob } from "@fluidframework/runtime-utils";
|
|
10
|
+
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
11
|
+
import { IContainerRuntimeMetadata, ICreateContainerMetadata, IRefreshSummaryResult } from "../summary";
|
|
12
|
+
import { RuntimeHeaderData } from "../containerRuntime";
|
|
13
|
+
import { ContainerRuntimeGCMessage } from "../messageTypes";
|
|
14
|
+
/**
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export type GCVersion = number;
|
|
18
|
+
/** The stable/default version of GC Data */
|
|
19
|
+
export declare const stableGCVersion: GCVersion;
|
|
20
|
+
/** The next version of GC Data, to bump to in case we need to regenerate all GC Data across all files. */
|
|
21
|
+
export declare const nextGCVersion: GCVersion;
|
|
22
|
+
/**
|
|
23
|
+
* This undocumented GC Option (on ContainerRuntime Options) allows an app to disable throwing an error when tombstone
|
|
24
|
+
* object is loaded (requested), merely logging a message instead.
|
|
25
|
+
*
|
|
26
|
+
* By default, attempting to load a Tombstoned object will result in an error.
|
|
27
|
+
*/
|
|
28
|
+
export declare const gcDisableThrowOnTombstoneLoadOptionName = "gcDisableThrowOnTombstoneLoad";
|
|
29
|
+
/**
|
|
30
|
+
* This undocumented GC Option (on ContainerRuntime Options) allows configuring which documents can have Sweep enabled.
|
|
31
|
+
* This provides a way to disable both Tombstone Enforcement and Sweep.
|
|
32
|
+
*
|
|
33
|
+
* If unset, Tombstone Enforcement + Sweep will operate as otherwise configured.
|
|
34
|
+
* Otherwise, the Sweep Phase will be disabled for documents where persisted value doesn't match what is passed into this session.
|
|
35
|
+
* This provides a way to disallow Sweep for old documents that may be too difficult for an app to repair,
|
|
36
|
+
* in case a bug is found that violates GC's assumptions.
|
|
37
|
+
*
|
|
38
|
+
* @see GCFeatureMatrix (gcGeneration)
|
|
39
|
+
*/
|
|
40
|
+
export declare const gcGenerationOptionName = "gcGeneration";
|
|
41
|
+
/** Config key to turn GC on / off. */
|
|
42
|
+
export declare const runGCKey = "Fluid.GarbageCollection.RunGC";
|
|
43
|
+
/** Config key to turn GC sweep on / off. */
|
|
44
|
+
export declare const runSweepKey = "Fluid.GarbageCollection.RunSweep";
|
|
45
|
+
/** Config key to turn GC test mode on / off. */
|
|
46
|
+
export declare const gcTestModeKey = "Fluid.GarbageCollection.GCTestMode";
|
|
47
|
+
/** Config key to expire a session after a set period of time. Defaults to true. */
|
|
48
|
+
export declare const runSessionExpiryKey = "Fluid.GarbageCollection.RunSessionExpiry";
|
|
49
|
+
/** Config key to disable the tombstone feature, i.e., tombstone information is not read / written into summary. */
|
|
50
|
+
export declare const disableTombstoneKey = "Fluid.GarbageCollection.DisableTombstone";
|
|
51
|
+
/** Config key to override throwing an error when tombstone object is loaded (requested). */
|
|
52
|
+
export declare const throwOnTombstoneLoadOverrideKey = "Fluid.GarbageCollection.ThrowOnTombstoneLoadOverride";
|
|
53
|
+
/** Config key to enable throwing an error when tombstone object is used (e.g. outgoing or incoming ops). */
|
|
54
|
+
export declare const throwOnTombstoneUsageKey = "Fluid.GarbageCollection.ThrowOnTombstoneUsage";
|
|
55
|
+
/** Config key to enable GC version upgrade. */
|
|
56
|
+
export declare const gcVersionUpgradeToV4Key = "Fluid.GarbageCollection.GCVersionUpgradeToV4";
|
|
57
|
+
/** Config key to disable GC sweep for datastores. */
|
|
58
|
+
export declare const disableDatastoreSweepKey = "Fluid.GarbageCollection.DisableDataStoreSweep";
|
|
59
|
+
/** Config key to disable GC sweep for attachment blobs. */
|
|
60
|
+
export declare const disableAttachmentBlobSweepKey = "Fluid.GarbageCollection.DisableAttachmentBlobSweep";
|
|
61
|
+
export declare const oneDayMs: number;
|
|
62
|
+
/**
|
|
63
|
+
* The maximum snapshot cache expiry in the driver. This is used to calculate the tombstone timeout.
|
|
64
|
+
* Tombstone timeout = session expiry timeout + snapshot cache expiry timeout + a buffer.
|
|
65
|
+
* The snapshot cache expiry timeout cannot be known precisely but the upper bound is 5 days, i.e., any snapshot
|
|
66
|
+
* in cache will be invalidated before 5 days.
|
|
67
|
+
*/
|
|
68
|
+
export declare const maxSnapshotCacheExpiryMs: number;
|
|
69
|
+
export declare const defaultInactiveTimeoutMs: number;
|
|
70
|
+
export declare const defaultSessionExpiryDurationMs: number;
|
|
71
|
+
export declare const defaultSweepGracePeriodMs: number;
|
|
72
|
+
/**
|
|
73
|
+
* @see IGCMetadata.gcFeatureMatrix and @see gcGenerationOptionName
|
|
74
|
+
* @alpha
|
|
75
|
+
*/
|
|
76
|
+
export type GCFeatureMatrix = {
|
|
77
|
+
/**
|
|
78
|
+
* The GC Generation value in effect when this file was created.
|
|
79
|
+
* Gives a way for an app to disqualify old files from GC Sweep.
|
|
80
|
+
* Provided via Container Runtime Options.
|
|
81
|
+
*/
|
|
82
|
+
gcGeneration?: number;
|
|
83
|
+
/** Deprecated property from legacy type. Will not be set concurrently with gcGeneration */
|
|
84
|
+
tombstoneGeneration?: undefined;
|
|
85
|
+
} | {
|
|
86
|
+
/**
|
|
87
|
+
* The Tombstone Generation value in effect when this file was created.
|
|
88
|
+
* Legacy - new containers would get gcGeneration instead (if anything)
|
|
89
|
+
*/
|
|
90
|
+
tombstoneGeneration: number;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Deprecated properties formerly included in @see IGCMetadata.
|
|
94
|
+
* These may be found in old snapshots, so we need to support them for backwards compatibility.
|
|
95
|
+
*/
|
|
96
|
+
export interface IGCMetadata_Deprecated {
|
|
97
|
+
/**
|
|
98
|
+
* How long to wait after an object is unreferenced before deleting it via GC Sweep
|
|
99
|
+
*
|
|
100
|
+
* @deprecated Replaced by @see IGCMetadata.tombstoneTimeoutMs
|
|
101
|
+
*/
|
|
102
|
+
readonly sweepTimeoutMs?: number;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* GC-specific metadata to be written into the summary.
|
|
106
|
+
*
|
|
107
|
+
* @alpha
|
|
108
|
+
*/
|
|
109
|
+
export interface IGCMetadata {
|
|
110
|
+
/**
|
|
111
|
+
* The version of the GC code that was run to generate the GC data that is written in the summary.
|
|
112
|
+
* If the persisted value doesn't match the current value in the code, saved GC data will be discarded and regenerated from scratch.
|
|
113
|
+
* Also, used to determine whether GC is enabled for this container or not:
|
|
114
|
+
* - A value of 0 or undefined means GC is disabled.
|
|
115
|
+
* - A value greater than 0 means GC is enabled.
|
|
116
|
+
*/
|
|
117
|
+
readonly gcFeature?: GCVersion;
|
|
118
|
+
/**
|
|
119
|
+
* A collection of different numerical "Generations" for different features,
|
|
120
|
+
* used to determine feature availability over time.
|
|
121
|
+
* This info may come from multiple sources (FF code, config service, app via Container Runtime Options),
|
|
122
|
+
* and pertains to aspects of the document that may be fixed for its lifetime.
|
|
123
|
+
*
|
|
124
|
+
* For each dimension, if the persisted value doesn't match the currently provided value,
|
|
125
|
+
* then this file does not support the corresponding feature as currently implemented.
|
|
126
|
+
*
|
|
127
|
+
* Guidance is that if no value is provided at runtime, it should result in the current default behavior.
|
|
128
|
+
*/
|
|
129
|
+
readonly gcFeatureMatrix?: GCFeatureMatrix;
|
|
130
|
+
/**
|
|
131
|
+
* Tells whether the GC sweep phase is enabled for this container.
|
|
132
|
+
* - True means sweep phase is enabled.
|
|
133
|
+
* - False means sweep phase is disabled. If GC is disabled as per gcFeature, sweep is also disabled.
|
|
134
|
+
*
|
|
135
|
+
* @deprecated use GCFeatureMatrix.gcGeneration instead. @see GCFeatureMatrix.gcGeneration
|
|
136
|
+
*/
|
|
137
|
+
readonly sweepEnabled?: boolean;
|
|
138
|
+
/** If this is present, the session for this container will expire after this time and the container will close */
|
|
139
|
+
readonly sessionExpiryTimeoutMs?: number;
|
|
140
|
+
/**
|
|
141
|
+
* How long to wait after an object is unreferenced before it becomes a Tombstone.
|
|
142
|
+
*
|
|
143
|
+
* After this point, there's a grace period before the object is deleted.
|
|
144
|
+
* @see IGCRuntimeOptions.sweepGracePeriodMs
|
|
145
|
+
*
|
|
146
|
+
* So the full sweep timeout in a session is tombstoneTimeoutMs + sweepGracePeriodMs.
|
|
147
|
+
*/
|
|
148
|
+
readonly tombstoneTimeoutMs?: number;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* The statistics of the system state after a garbage collection mark phase run.
|
|
152
|
+
* @alpha
|
|
153
|
+
*/
|
|
154
|
+
export interface IMarkPhaseStats {
|
|
155
|
+
/** The number of nodes in the container. */
|
|
156
|
+
nodeCount: number;
|
|
157
|
+
/** The number of data stores in the container. */
|
|
158
|
+
dataStoreCount: number;
|
|
159
|
+
/** The number of attachment blobs in the container. */
|
|
160
|
+
attachmentBlobCount: number;
|
|
161
|
+
/** The number of unreferenced nodes in the container. */
|
|
162
|
+
unrefNodeCount: number;
|
|
163
|
+
/** The number of unreferenced data stores in the container. */
|
|
164
|
+
unrefDataStoreCount: number;
|
|
165
|
+
/** The number of unreferenced attachment blobs in the container. */
|
|
166
|
+
unrefAttachmentBlobCount: number;
|
|
167
|
+
/** The number of nodes whose reference state updated since last GC run. */
|
|
168
|
+
updatedNodeCount: number;
|
|
169
|
+
/** The number of data stores whose reference state updated since last GC run. */
|
|
170
|
+
updatedDataStoreCount: number;
|
|
171
|
+
/** The number of attachment blobs whose reference state updated since last GC run. */
|
|
172
|
+
updatedAttachmentBlobCount: number;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* The statistics of the system state after a garbage collection sweep phase run.
|
|
176
|
+
* @alpha
|
|
177
|
+
*/
|
|
178
|
+
export interface ISweepPhaseStats {
|
|
179
|
+
/** The number of nodes in the lifetime of the container. */
|
|
180
|
+
lifetimeNodeCount: number;
|
|
181
|
+
/** The number of data stores in the lifetime of the container. */
|
|
182
|
+
lifetimeDataStoreCount: number;
|
|
183
|
+
/** The number of attachment blobs in the lifetime of the container. */
|
|
184
|
+
lifetimeAttachmentBlobCount: number;
|
|
185
|
+
/** The number of deleted nodes in the container. */
|
|
186
|
+
deletedNodeCount: number;
|
|
187
|
+
/** The number of deleted data stores in the container. */
|
|
188
|
+
deletedDataStoreCount: number;
|
|
189
|
+
/** The number of deleted attachment blobs in the container. */
|
|
190
|
+
deletedAttachmentBlobCount: number;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The statistics of the system state after a garbage collection run.
|
|
194
|
+
* @alpha
|
|
195
|
+
*/
|
|
196
|
+
export interface IGCStats extends IMarkPhaseStats, ISweepPhaseStats {
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* The types of GC nodes in the GC reference graph.
|
|
200
|
+
* @alpha
|
|
201
|
+
*/
|
|
202
|
+
export declare const GCNodeType: {
|
|
203
|
+
DataStore: string;
|
|
204
|
+
SubDataStore: string;
|
|
205
|
+
Blob: string;
|
|
206
|
+
Other: string;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* @alpha
|
|
210
|
+
*/
|
|
211
|
+
export type GCNodeType = (typeof GCNodeType)[keyof typeof GCNodeType];
|
|
212
|
+
/**
|
|
213
|
+
* The type of a garbage collection message.
|
|
214
|
+
* @internal
|
|
215
|
+
*/
|
|
216
|
+
export declare const GarbageCollectionMessageType: {
|
|
217
|
+
/** Message sent directing GC to delete the given nodes */
|
|
218
|
+
readonly Sweep: "Sweep";
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* @internal
|
|
222
|
+
*/
|
|
223
|
+
export type GarbageCollectionMessageType = (typeof GarbageCollectionMessageType)[keyof typeof GarbageCollectionMessageType];
|
|
224
|
+
/**
|
|
225
|
+
* The garbage collection sweep message.
|
|
226
|
+
* @internal
|
|
227
|
+
*/
|
|
228
|
+
export interface ISweepMessage {
|
|
229
|
+
type: "Sweep";
|
|
230
|
+
deletedNodeIds: string[];
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Type for a message to be used for sending / received garbage collection messages.
|
|
234
|
+
* @internal
|
|
235
|
+
*/
|
|
236
|
+
export type GarbageCollectionMessage = ISweepMessage;
|
|
237
|
+
/**
|
|
238
|
+
* Defines the APIs for the runtime object to be passed to the garbage collector.
|
|
239
|
+
*/
|
|
240
|
+
export interface IGarbageCollectionRuntime {
|
|
241
|
+
/** Before GC runs, called to notify the runtime to update any pending GC state. */
|
|
242
|
+
updateStateBeforeGC(): Promise<void>;
|
|
243
|
+
/** Returns the garbage collection data of the runtime. */
|
|
244
|
+
getGCData(fullGC?: boolean): Promise<IGarbageCollectionData>;
|
|
245
|
+
/** After GC has run, called to notify the runtime of routes that are used in it. */
|
|
246
|
+
updateUsedRoutes(usedRoutes: readonly string[]): void;
|
|
247
|
+
/** After GC has run, called to notify the runtime of routes that are unused in it. */
|
|
248
|
+
updateUnusedRoutes(unusedRoutes: readonly string[]): void;
|
|
249
|
+
/**
|
|
250
|
+
* After GC has run and identified nodes that are sweep ready, called to delete the sweep ready nodes. The runtime
|
|
251
|
+
* should return the routes of nodes that were deleted.
|
|
252
|
+
* @param sweepReadyRoutes - The routes of nodes that are sweep ready and should be deleted.
|
|
253
|
+
*/
|
|
254
|
+
deleteSweepReadyNodes(sweepReadyRoutes: readonly string[]): readonly string[];
|
|
255
|
+
/** Called to notify the runtime of routes that are tombstones. */
|
|
256
|
+
updateTombstonedRoutes(tombstoneRoutes: readonly string[]): void;
|
|
257
|
+
/** Returns a referenced timestamp to be used to track unreferenced nodes. */
|
|
258
|
+
getCurrentReferenceTimestampMs(): number | undefined;
|
|
259
|
+
/** Returns the type of the GC node. */
|
|
260
|
+
getNodeType(nodePath: string): GCNodeType;
|
|
261
|
+
/** Called when the runtime should close because of an error. */
|
|
262
|
+
closeFn: (error?: ICriticalContainerError) => void;
|
|
263
|
+
}
|
|
264
|
+
/** Defines the contract for the garbage collector. */
|
|
265
|
+
export interface IGarbageCollector {
|
|
266
|
+
/** Tells whether GC should run or not. */
|
|
267
|
+
readonly shouldRunGC: boolean;
|
|
268
|
+
/** Tells whether the GC state in summary needs to be reset in the next summary. */
|
|
269
|
+
readonly summaryStateNeedsReset: boolean;
|
|
270
|
+
/** The count of data stores whose GC state updated since the last summary. */
|
|
271
|
+
readonly updatedDSCountSinceLastSummary: number;
|
|
272
|
+
/** Tells whether tombstone feature is enabled and enforced. */
|
|
273
|
+
readonly tombstoneEnforcementAllowed: boolean;
|
|
274
|
+
/** Tells whether loading a tombstone object should fail or merely log. */
|
|
275
|
+
readonly throwOnTombstoneLoad: boolean;
|
|
276
|
+
/** Tells whether using a tombstone object should fail or merely log. */
|
|
277
|
+
readonly throwOnTombstoneUsage: boolean;
|
|
278
|
+
/** Initialize the state from the base snapshot after its creation. */
|
|
279
|
+
initializeBaseState(): Promise<void>;
|
|
280
|
+
/** Run garbage collection and update the reference / used state of the system. */
|
|
281
|
+
collectGarbage(options: {
|
|
282
|
+
logger?: ITelemetryLoggerExt;
|
|
283
|
+
runSweep?: boolean;
|
|
284
|
+
fullGC?: boolean;
|
|
285
|
+
}, telemetryContext?: ITelemetryContext): Promise<IGCStats | undefined>;
|
|
286
|
+
/** Summarizes the GC data and returns it as a summary tree. */
|
|
287
|
+
summarize(fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext): ISummarizeResult | undefined;
|
|
288
|
+
/** Returns the garbage collector specific metadata to be written into the summary. */
|
|
289
|
+
getMetadata(): IGCMetadata;
|
|
290
|
+
/** Returns the GC details generated from the base snapshot. */
|
|
291
|
+
getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
|
|
292
|
+
/** Called when the latest summary of the system has been refreshed. */
|
|
293
|
+
refreshLatestSummary(result: IRefreshSummaryResult): Promise<void>;
|
|
294
|
+
/**
|
|
295
|
+
* Called when a node with the given path is updated. If the node is inactive or tombstoned, this will log an error
|
|
296
|
+
* or throw an error if failing on incorrect usage is configured.
|
|
297
|
+
*/
|
|
298
|
+
nodeUpdated(nodePath: string, reason: "Loaded" | "Changed", timestampMs?: number, packagePath?: readonly string[], request?: IRequest, headerData?: RuntimeHeaderData): void;
|
|
299
|
+
/** Called when a reference is added to a node. Used to identify nodes that were referenced between summaries. */
|
|
300
|
+
addedOutboundReference(fromNodePath: string, toNodePath: string): void;
|
|
301
|
+
/** Called to process a garbage collection message. */
|
|
302
|
+
processMessage(message: ContainerRuntimeGCMessage, local: boolean): void;
|
|
303
|
+
/** Returns true if this node has been deleted by GC during sweep phase. */
|
|
304
|
+
isNodeDeleted(nodePath: string): boolean;
|
|
305
|
+
setConnectionState(connected: boolean, clientId?: string): void;
|
|
306
|
+
dispose(): void;
|
|
307
|
+
}
|
|
308
|
+
/** Parameters necessary for creating a GarbageCollector. */
|
|
309
|
+
export interface IGarbageCollectorCreateParams {
|
|
310
|
+
readonly runtime: IGarbageCollectionRuntime;
|
|
311
|
+
readonly gcOptions: IGCRuntimeOptions;
|
|
312
|
+
readonly baseLogger: ITelemetryLoggerExt;
|
|
313
|
+
readonly existing: boolean;
|
|
314
|
+
readonly metadata: IContainerRuntimeMetadata | undefined;
|
|
315
|
+
readonly createContainerMetadata: ICreateContainerMetadata;
|
|
316
|
+
readonly baseSnapshot: ISnapshotTree | undefined;
|
|
317
|
+
readonly isSummarizerClient: boolean;
|
|
318
|
+
readonly getNodePackagePath: (nodePath: string) => Promise<readonly string[] | undefined>;
|
|
319
|
+
readonly getLastSummaryTimestampMs: () => number | undefined;
|
|
320
|
+
readonly readAndParseBlob: ReadAndParseBlob;
|
|
321
|
+
readonly submitMessage: (message: ContainerRuntimeGCMessage) => void;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* @alpha
|
|
325
|
+
*/
|
|
326
|
+
export interface IGCRuntimeOptions {
|
|
327
|
+
/**
|
|
328
|
+
* Flag that if true, will enable running garbage collection (GC) for a new container.
|
|
329
|
+
*
|
|
330
|
+
* GC has mark phase and sweep phase. In mark phase, unreferenced objects are identified
|
|
331
|
+
* and marked as such in the summary. This option enables the mark phase.
|
|
332
|
+
* In sweep phase, unreferenced objects are eventually deleted from the container if they meet certain conditions.
|
|
333
|
+
* Sweep phase can be enabled using the "enableGCSweep" option.
|
|
334
|
+
*
|
|
335
|
+
* Note: This setting is persisted in the container's summary and cannot be changed.
|
|
336
|
+
*/
|
|
337
|
+
gcAllowed?: boolean;
|
|
338
|
+
/**
|
|
339
|
+
* Flag that if true, will disable garbage collection for the session.
|
|
340
|
+
* Can be used to disable running GC on containers where it is allowed via the gcAllowed option.
|
|
341
|
+
*/
|
|
342
|
+
disableGC?: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Flag that if true, will enable the full Sweep Phase of garbage collection for this session,
|
|
345
|
+
* where Tombstoned objects are permanently deleted from the container.
|
|
346
|
+
*
|
|
347
|
+
* IMPORTANT: This only applies if this document is allowed to run Sweep Phase.
|
|
348
|
+
*
|
|
349
|
+
* Current default behavior is for Sweep Phase not to delete Tombstoned objects,
|
|
350
|
+
* but merely to prevent them from being loaded.
|
|
351
|
+
*/
|
|
352
|
+
enableGCSweep?: true;
|
|
353
|
+
/**
|
|
354
|
+
* Flag that will bypass optimizations and generate GC data for all nodes irrespective of whether a node
|
|
355
|
+
* changed or not.
|
|
356
|
+
*/
|
|
357
|
+
runFullGC?: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Maximum session duration for a new container. If not present, a default value will be used.
|
|
360
|
+
*
|
|
361
|
+
* Note: This setting is persisted in the container's summary and cannot be changed.
|
|
362
|
+
*/
|
|
363
|
+
sessionExpiryTimeoutMs?: number;
|
|
364
|
+
/**
|
|
365
|
+
* Delay between when Tombstone should run and when the object should be deleted.
|
|
366
|
+
* This grace period gives a chance to intervene to recover if needed, before Sweep deletes the object.
|
|
367
|
+
* If not present, a default (non-zero) value will be used.
|
|
368
|
+
*/
|
|
369
|
+
sweepGracePeriodMs?: number;
|
|
370
|
+
/**
|
|
371
|
+
* Allows additional GC options to be passed.
|
|
372
|
+
*/
|
|
373
|
+
[key: string]: any;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* The configurations for Garbage Collector that determines what runs and how.
|
|
377
|
+
*/
|
|
378
|
+
export interface IGarbageCollectorConfigs {
|
|
379
|
+
/**
|
|
380
|
+
* Tracks if GC is enabled for this document. This is specified during document creation and doesn't change
|
|
381
|
+
* throughout its lifetime.
|
|
382
|
+
*/
|
|
383
|
+
readonly gcEnabled: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* Tracks if sweep phase is enabled for this document. This is specified during document creation and doesn't change
|
|
386
|
+
* throughout its lifetime.
|
|
387
|
+
*/
|
|
388
|
+
readonly sweepEnabled: boolean;
|
|
389
|
+
/**
|
|
390
|
+
* Tracks if GC should run or not. Even if GC is enabled for a document (see gcEnabled), it can be explicitly
|
|
391
|
+
* disabled via runtime options or feature flags.
|
|
392
|
+
*/
|
|
393
|
+
readonly shouldRunGC: boolean;
|
|
394
|
+
/**
|
|
395
|
+
* Tracks if sweep phase should run or not. Even if the sweep phase is enabled for a document (see sweepEnabled), it
|
|
396
|
+
* can be explicitly disabled via feature flags. It also won't run if session expiry is not enabled.
|
|
397
|
+
*/
|
|
398
|
+
readonly shouldRunSweep: boolean;
|
|
399
|
+
/**
|
|
400
|
+
* If true, bypass optimizations and generate GC data for all nodes irrespective of whether a node changed or not.
|
|
401
|
+
*/
|
|
402
|
+
readonly runFullGC: boolean | undefined;
|
|
403
|
+
/** The time in ms to expire a session for a client for gc. */
|
|
404
|
+
readonly sessionExpiryTimeoutMs: number | undefined;
|
|
405
|
+
/** The time after which an unreferenced node can be Tombstoned - i.e. GC knows it can't be referenced again (revived). */
|
|
406
|
+
readonly tombstoneTimeoutMs: number | undefined;
|
|
407
|
+
/**
|
|
408
|
+
* The delay between tombstone and sweep. Not persisted, so concurrent sessions may use different values.
|
|
409
|
+
* Sweep is implemented in an eventually-consistent way so this is acceptable.
|
|
410
|
+
*/
|
|
411
|
+
readonly sweepGracePeriodMs: number;
|
|
412
|
+
/** The time after which an unreferenced node is inactive. */
|
|
413
|
+
readonly inactiveTimeoutMs: number;
|
|
414
|
+
/** Tracks whether GC should run in test mode. In this mode, unreferenced objects are deleted immediately. */
|
|
415
|
+
readonly testMode: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Tracks whether GC should run in tombstone mode. In this mode, objects are marked as tombstones as a step along the
|
|
418
|
+
* way before they are fully deleted.
|
|
419
|
+
* In interactive (non-summarizer) clients, tombstone objects behave as if they are deleted, i.e., access to them
|
|
420
|
+
* is not allowed. However, these objects can be accessed after referencing them first. It is used as a "warning"
|
|
421
|
+
* step before sweep, where objects wrongly marked as unreferenced can be recovered.
|
|
422
|
+
*/
|
|
423
|
+
readonly tombstoneMode: boolean;
|
|
424
|
+
/** @see GCFeatureMatrix. */
|
|
425
|
+
readonly persistedGcFeatureMatrix: GCFeatureMatrix | undefined;
|
|
426
|
+
/** The version of GC in the base snapshot. */
|
|
427
|
+
readonly gcVersionInBaseSnapshot: GCVersion | undefined;
|
|
428
|
+
/** The current version of GC data in the running code */
|
|
429
|
+
readonly gcVersionInEffect: GCVersion;
|
|
430
|
+
/** It is easier for users to diagnose InactiveObject usage if we throw on load, which this option enables */
|
|
431
|
+
readonly throwOnInactiveLoad: boolean | undefined;
|
|
432
|
+
/** If true, throw an error when a tombstone data store is retrieved */
|
|
433
|
+
readonly throwOnTombstoneLoad: boolean;
|
|
434
|
+
/** If true, throw an error when a tombstone data store is used. */
|
|
435
|
+
readonly throwOnTombstoneUsage: boolean;
|
|
436
|
+
}
|
|
437
|
+
/** The state of node that is unreferenced. */
|
|
438
|
+
export declare const UnreferencedState: {
|
|
439
|
+
/** The node is active, i.e., it can become referenced again. */
|
|
440
|
+
readonly Active: "Active";
|
|
441
|
+
/** The node is inactive, i.e., it should not become referenced. */
|
|
442
|
+
readonly Inactive: "Inactive";
|
|
443
|
+
/** The node is ready to be tombstoned */
|
|
444
|
+
readonly TombstoneReady: "TombstoneReady";
|
|
445
|
+
/** The node is ready to be deleted by the sweep phase. */
|
|
446
|
+
readonly SweepReady: "SweepReady";
|
|
447
|
+
};
|
|
448
|
+
export type UnreferencedState = (typeof UnreferencedState)[keyof typeof UnreferencedState];
|
|
449
|
+
/**
|
|
450
|
+
* Represents the result of a GC run.
|
|
451
|
+
*/
|
|
452
|
+
export interface IGCResult {
|
|
453
|
+
/** The ids of nodes that are referenced in the referenced graph */
|
|
454
|
+
referencedNodeIds: string[];
|
|
455
|
+
/** The ids of nodes that are not-referenced or deleted in the referenced graph */
|
|
456
|
+
deletedNodeIds: string[];
|
|
457
|
+
}
|
|
458
|
+
//# sourceMappingURL=gcDefinitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gcDefinitions.d.ts","sourceRoot":"","sources":["../../src/gc/gcDefinitions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EACN,sBAAsB,EACtB,6BAA6B,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EACN,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,4CAA4C;AAC5C,eAAO,MAAM,eAAe,EAAE,SAAa,CAAC;AAC5C,0GAA0G;AAC1G,eAAO,MAAM,aAAa,EAAE,SAAa,CAAC;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,kCAAkC,CAAC;AAEvF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,iBAAiB,CAAC;AAErD,sCAAsC;AACtC,eAAO,MAAM,QAAQ,kCAAkC,CAAC;AACxD,4CAA4C;AAC5C,eAAO,MAAM,WAAW,qCAAqC,CAAC;AAC9D,gDAAgD;AAChD,eAAO,MAAM,aA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