@fluidframework/container-runtime 2.21.0 → 2.23.0-323641

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/container-runtime";
8
- export declare const pkgVersion = "2.21.0";
8
+ export declare const pkgVersion = "2.23.0-323641";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,sCAAsC,CAAC;AAC3D,eAAO,MAAM,UAAU,WAAW,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,sCAAsC,CAAC;AAC3D,eAAO,MAAM,UAAU,kBAAkB,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/container-runtime";
8
- export const pkgVersion = "2.21.0";
8
+ export const pkgVersion = "2.23.0-323641";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAC3D,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-runtime\";\nexport const pkgVersion = \"2.21.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAC3D,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-runtime\";\nexport const pkgVersion = \"2.23.0-323641\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/container-runtime",
3
- "version": "2.21.0",
3
+ "version": "2.23.0-323641",
4
4
  "description": "Fluid container runtime",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -119,18 +119,18 @@
119
119
  "temp-directory": "nyc/.nyc_output"
120
120
  },
121
121
  "dependencies": {
122
- "@fluid-internal/client-utils": "~2.21.0",
123
- "@fluidframework/container-definitions": "~2.21.0",
124
- "@fluidframework/container-runtime-definitions": "~2.21.0",
125
- "@fluidframework/core-interfaces": "~2.21.0",
126
- "@fluidframework/core-utils": "~2.21.0",
127
- "@fluidframework/datastore": "~2.21.0",
128
- "@fluidframework/driver-definitions": "~2.21.0",
129
- "@fluidframework/driver-utils": "~2.21.0",
130
- "@fluidframework/id-compressor": "~2.21.0",
131
- "@fluidframework/runtime-definitions": "~2.21.0",
132
- "@fluidframework/runtime-utils": "~2.21.0",
133
- "@fluidframework/telemetry-utils": "~2.21.0",
122
+ "@fluid-internal/client-utils": "2.23.0-323641",
123
+ "@fluidframework/container-definitions": "2.23.0-323641",
124
+ "@fluidframework/container-runtime-definitions": "2.23.0-323641",
125
+ "@fluidframework/core-interfaces": "2.23.0-323641",
126
+ "@fluidframework/core-utils": "2.23.0-323641",
127
+ "@fluidframework/datastore": "2.23.0-323641",
128
+ "@fluidframework/driver-definitions": "2.23.0-323641",
129
+ "@fluidframework/driver-utils": "2.23.0-323641",
130
+ "@fluidframework/id-compressor": "2.23.0-323641",
131
+ "@fluidframework/runtime-definitions": "2.23.0-323641",
132
+ "@fluidframework/runtime-utils": "2.23.0-323641",
133
+ "@fluidframework/telemetry-utils": "2.23.0-323641",
134
134
  "@tylerbu/sorted-btree-es6": "^1.8.0",
135
135
  "double-ended-queue": "^2.1.0-0",
136
136
  "lz4js": "^0.2.0",
@@ -139,16 +139,16 @@
139
139
  "devDependencies": {
140
140
  "@arethetypeswrong/cli": "^0.17.1",
141
141
  "@biomejs/biome": "~1.9.3",
142
- "@fluid-internal/mocha-test-setup": "~2.21.0",
143
- "@fluid-private/stochastic-test-utils": "~2.21.0",
144
- "@fluid-private/test-pairwise-generator": "~2.21.0",
142
+ "@fluid-internal/mocha-test-setup": "2.23.0-323641",
143
+ "@fluid-private/stochastic-test-utils": "2.23.0-323641",
144
+ "@fluid-private/test-pairwise-generator": "2.23.0-323641",
145
145
  "@fluid-tools/benchmark": "^0.50.0",
146
- "@fluid-tools/build-cli": "^0.51.0",
146
+ "@fluid-tools/build-cli": "^0.53.0",
147
147
  "@fluidframework/build-common": "^2.0.3",
148
- "@fluidframework/build-tools": "^0.51.0",
149
- "@fluidframework/container-runtime-previous": "npm:@fluidframework/container-runtime@2.20.0",
148
+ "@fluidframework/build-tools": "^0.53.0",
149
+ "@fluidframework/container-runtime-previous": "npm:@fluidframework/container-runtime@2.22.0",
150
150
  "@fluidframework/eslint-config-fluid": "^5.7.3",
151
- "@fluidframework/test-runtime-utils": "~2.21.0",
151
+ "@fluidframework/test-runtime-utils": "2.23.0-323641",
152
152
  "@microsoft/api-extractor": "7.47.8",
153
153
  "@types/double-ended-queue": "^2.1.0",
154
154
  "@types/lz4js": "^0.2.0",
@@ -213,11 +213,11 @@
213
213
  "lint:fix": "fluid-build . --task eslint:fix --task format",
214
214
  "place:cjs:package-stub": "copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
215
215
  "test": "npm run test:mocha",
216
- "test:benchmark:report": "mocha --timeout 10s --perfMode --parentProcess --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js \"./dist/**/*.perf.spec.*js\" --exit",
216
+ "test:benchmark:report": "mocha --timeout 10s --perfMode --parentProcess --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js \"./dist/**/*.perf.spec.*js\"",
217
217
  "test:coverage": "c8 npm test",
218
218
  "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
219
- "test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\" --exit",
220
- "test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit",
219
+ "test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\"",
220
+ "test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\"",
221
221
  "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
222
222
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub",
223
223
  "tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch",
@@ -8,7 +8,7 @@ import {
8
8
  bufferToString,
9
9
  stringToBuffer,
10
10
  } from "@fluid-internal/client-utils";
11
- import { AttachState, ICriticalContainerError } from "@fluidframework/container-definitions";
11
+ import { AttachState } from "@fluidframework/container-definitions";
12
12
  import {
13
13
  IContainerRuntime,
14
14
  IContainerRuntimeEvents,
@@ -36,7 +36,6 @@ import {
36
36
  responseToException,
37
37
  } from "@fluidframework/runtime-utils/internal";
38
38
  import {
39
- GenericError,
40
39
  LoggingError,
41
40
  MonitoringContext,
42
41
  PerformanceEvent,
@@ -180,7 +179,6 @@ export class BlobManager extends TypedEventEmitter<IBlobManagerEvents> {
180
179
  // blobPath's format - `/<basePath>/<blobId>`.
181
180
  private readonly isBlobDeleted: (blobPath: string) => boolean;
182
181
  private readonly runtime: IBlobManagerRuntime;
183
- private readonly closeContainer: (error?: ICriticalContainerError) => void;
184
182
  private readonly localBlobIdGenerator: () => string;
185
183
  private readonly pendingStashedBlobs: Map<string, Promise<ICreateBlobResponse | void>> =
186
184
  new Map();
@@ -210,7 +208,6 @@ export class BlobManager extends TypedEventEmitter<IBlobManagerEvents> {
210
208
  readonly isBlobDeleted: (blobPath: string) => boolean;
211
209
  readonly runtime: IBlobManagerRuntime;
212
210
  stashedBlobs: IPendingBlobs | undefined;
213
- readonly closeContainer: (error?: ICriticalContainerError) => void;
214
211
  readonly localBlobIdGenerator?: (() => string) | undefined;
215
212
  }) {
216
213
  super();
@@ -223,7 +220,6 @@ export class BlobManager extends TypedEventEmitter<IBlobManagerEvents> {
223
220
  isBlobDeleted,
224
221
  runtime,
225
222
  stashedBlobs,
226
- closeContainer,
227
223
  localBlobIdGenerator,
228
224
  } = props;
229
225
  this.routeContext = routeContext;
@@ -231,7 +227,6 @@ export class BlobManager extends TypedEventEmitter<IBlobManagerEvents> {
231
227
  this.blobRequested = blobRequested;
232
228
  this.isBlobDeleted = isBlobDeleted;
233
229
  this.runtime = runtime;
234
- this.closeContainer = closeContainer;
235
230
  this.localBlobIdGenerator = localBlobIdGenerator ?? uuid;
236
231
 
237
232
  this.mc = createChildMonitoringContext({
@@ -300,14 +295,16 @@ export class BlobManager extends TypedEventEmitter<IBlobManagerEvents> {
300
295
  expired,
301
296
  });
302
297
  if (expired) {
303
- // we want to avoid submitting ops with broken handles
304
- this.closeContainer(
305
- new GenericError("Trying to submit a BlobAttach for expired blob", undefined, {
306
- localId,
307
- blobId,
308
- secondsSinceUpload,
309
- }),
310
- );
298
+ // reupload blob and reset previous fields
299
+ this.pendingBlobs.set(localId, {
300
+ ...pendingEntry,
301
+ storageId: undefined,
302
+ uploadTime: undefined,
303
+ minTTLInSeconds: undefined,
304
+ opsent: false,
305
+ uploadP: this.uploadBlob(localId, pendingEntry.blob),
306
+ });
307
+ return;
311
308
  }
312
309
  }
313
310
  pendingEntry.opsent = true;
@@ -1942,7 +1942,6 @@ export class ContainerRuntime
1942
1942
  isBlobDeleted: (blobPath: string) => this.garbageCollector.isNodeDeleted(blobPath),
1943
1943
  runtime: this,
1944
1944
  stashedBlobs: pendingRuntimeState?.pendingAttachmentBlobs,
1945
- closeContainer: (error?: ICriticalContainerError) => this.closeFn(error),
1946
1945
  });
1947
1946
 
1948
1947
  this.deltaScheduler = new DeltaScheduler(
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-runtime";
9
- export const pkgVersion = "2.21.0";
9
+ export const pkgVersion = "2.23.0-323641";