message: Disable reference correctness validation and GC state reset logic.
diff: @@ -250,7 +250,7 @@ export class GarbageCollector implements IGarbageCollector {
  * Note that the state needs reset only for the very first time summary is generated by this client. After that, the
  * state will be up-to-date and this flag will be reset.
  */
  - private initialStateNeedsReset: boolean;
  + private initialStateNeedsReset: boolean = false;
  // The current GC version that this container is running.
  private readonly currentGCVersion = GCVersion;
  @@ -344,10 +344,15 @@ export class GarbageCollector implements IGarbageCollector {
  // Whether we are running in test mode. In this mode, unreferenced nodes are immediately deleted.
  this.testMode = this.mc.config.getBoolean(gcTestModeKey) ?? gcOptions.runGCInTestMode === true;
  + /**
  + * Enable resetting initial state once the following issue is resolved:
  + * https://github.com/microsoft/FluidFramework/issues/8878.
  + * Currently, the GC tree is not written at root, so we don't know if the base snapshot contains GC tree or not.
  + */
  // The GC state needs to be reset if the base snapshot contains GC tree and GC is disabled or it doesn't contain
  // GC tree and GC is enabled.
  - const gcTreePresent = baseSnapshot?.trees[gcTreeKey] !== undefined;
  - this.initialStateNeedsReset = gcTreePresent ? !this.shouldRunGC : this.shouldRunGC;
  + // const gcTreePresent = baseSnapshot?.trees[gcTreeKey] !== undefined;
  + // this.initialStateNeedsReset = gcTreePresent ? !this.shouldRunGC : this.shouldRunGC;
  // Get the GC state from the GC blob in the base snapshot. Use LazyPromise because we only want to do
  // this once since it involves fetching blobs from storage which is expensive.
  @@ -796,12 +801,16 @@ export class GarbageCollector implements IGarbageCollector {
  // Validate references for data stores only whose routes are of the format "/dataStoreId". Currently, layers
  // below data stores don't have GC implemented so there is no guarantee their references will be notified.
  if (route.split("/").length === 2 && !explicitReferences.includes(route)) {
  + /**
  + * The following log will be enabled once this issue is resolved:
  + * https://github.com/microsoft/FluidFramework/issues/8878.
  + */
  // We should ideally throw a data corruption error here. However, send an error for now until we have
  // implemented sweep and have reasonable confidence in the sweep process.
  - this.mc.logger.sendErrorEvent({
  - eventName: "gcUnknownOutboundRoute",
  - route,
  - });
  + // this.mc.logger.sendErrorEvent({
  + // eventName: "gcUnknownOutboundRoute",
  + // route,
  + // });
  }
  });
  }
  