@fluidframework/container-runtime 0.56.2 → 0.56.3

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 = "0.56.2";
8
+ export declare const pkgVersion = "0.56.3";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -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 = "0.56.2";
8
+ export const pkgVersion = "0.56.3";
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 = \"0.56.2\";\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,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 = \"0.56.3\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/container-runtime",
3
- "version": "0.56.2",
3
+ "version": "0.56.3",
4
4
  "description": "Fluid container runtime",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": "https://github.com/microsoft/FluidFramework",
@@ -59,26 +59,26 @@
59
59
  "@fluidframework/common-definitions": "^0.20.1",
60
60
  "@fluidframework/common-utils": "^0.32.1",
61
61
  "@fluidframework/container-definitions": "^0.45.0",
62
- "@fluidframework/container-runtime-definitions": "^0.56.2",
63
- "@fluidframework/container-utils": "^0.56.2",
62
+ "@fluidframework/container-runtime-definitions": "^0.56.3",
63
+ "@fluidframework/container-utils": "^0.56.3",
64
64
  "@fluidframework/core-interfaces": "^0.42.0",
65
- "@fluidframework/datastore": "^0.56.2",
65
+ "@fluidframework/datastore": "^0.56.3",
66
66
  "@fluidframework/driver-definitions": "^0.44.0",
67
- "@fluidframework/driver-utils": "^0.56.2",
68
- "@fluidframework/garbage-collector": "^0.56.2",
67
+ "@fluidframework/driver-utils": "^0.56.3",
68
+ "@fluidframework/garbage-collector": "^0.56.3",
69
69
  "@fluidframework/protocol-base": "^0.1034.0",
70
70
  "@fluidframework/protocol-definitions": "^0.1026.0",
71
- "@fluidframework/runtime-definitions": "^0.56.2",
72
- "@fluidframework/runtime-utils": "^0.56.2",
73
- "@fluidframework/telemetry-utils": "^0.56.2",
71
+ "@fluidframework/runtime-definitions": "^0.56.3",
72
+ "@fluidframework/runtime-utils": "^0.56.3",
73
+ "@fluidframework/telemetry-utils": "^0.56.3",
74
74
  "double-ended-queue": "^2.1.0-0",
75
75
  "uuid": "^8.3.1"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@fluidframework/build-common": "^0.23.0",
79
79
  "@fluidframework/eslint-config-fluid": "^0.25.0",
80
- "@fluidframework/mocha-test-setup": "^0.56.2",
81
- "@fluidframework/test-runtime-utils": "^0.56.2",
80
+ "@fluidframework/mocha-test-setup": "^0.56.3",
81
+ "@fluidframework/test-runtime-utils": "^0.56.3",
82
82
  "@microsoft/api-extractor": "^7.16.1",
83
83
  "@rushstack/eslint-config": "^2.5.1",
84
84
  "@types/double-ended-queue": "^2.1.0",
@@ -391,6 +391,11 @@ class ScheduleManagerCore {
391
391
  for (const pending of allPending) {
392
392
  this.trackPending(pending);
393
393
  }
394
+
395
+ // We are intentionally directly listening to the "op" to inspect system ops as well.
396
+ // If we do not observe system ops, we are likely to hit 0x296 assert when system ops
397
+ // precedes start of incomplete batch.
398
+ this.deltaManager.on("op", (message) => this.afterOpProcessing(message.sequenceNumber));
394
399
  }
395
400
 
396
401
  /**
@@ -536,8 +541,6 @@ export class ScheduleManager {
536
541
  private batchClientId: string | undefined;
537
542
  private hitError = false;
538
543
 
539
- private readonly scheduler: ScheduleManagerCore;
540
-
541
544
  constructor(
542
545
  private readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>,
543
546
  private readonly emitter: EventEmitter,
@@ -547,7 +550,7 @@ export class ScheduleManager {
547
550
  this.deltaManager,
548
551
  ChildLogger.create(this.logger, "DeltaScheduler"),
549
552
  );
550
- this.scheduler = new ScheduleManagerCore(deltaManager, logger);
553
+ void new ScheduleManagerCore(deltaManager, logger);
551
554
  }
552
555
 
553
556
  public beforeOpProcessing(message: ISequencedDocumentMessage) {
@@ -572,10 +575,6 @@ export class ScheduleManager {
572
575
  // If this is no longer true, we need to revisit what we do where we set this.hitError.
573
576
  assert(!this.hitError, 0x2a3 /* "container should be closed on any error" */);
574
577
 
575
- // Let the scheduler know how far we progressed, to decide if op processing
576
- // should be paused or not.
577
- this.scheduler.afterOpProcessing(message.sequenceNumber);
578
-
579
578
  if (error) {
580
579
  // We assume here that loader will close container and stop processing all future ops.
581
580
  // This is implicit dependency. If this flow changes, this code might no longer be correct.
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-runtime";
9
- export const pkgVersion = "0.56.2";
9
+ export const pkgVersion = "0.56.3";