ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Problem

      The standby's checkpoint validator (SizeCountCheckpointValidator::mergeAndValidate) removes the oplog's entry from the primary's replicated metadata checkpoint before comparing. The primary derives the oplog's size and count while tailing the oplog, rather than from
      per-entry m metadata, so the standby records no deltas for it. SERVER-136557 removes the entry using the standby's own oplog UUID:

        primary.erase(oplogUuid);  // oplogUuid = getOplogUuid() on the standby

      On disaggregated storage this is correct, because the oplog is a layered table shared by all nodes and its UUID is the same everywhere. On attached storage, each node creates its own oplog with its own UUID (replicated_fast_count_manager.cpp, around line 345, says "The oplog collection can have a different UUID on every node"). There the erase matches nothing, the primary's oplog entry stays in the checkpoint, and validation fasserts 13626001 ("checkpoint writes a collection the standby observed no changes for"), even though replication is correct.

      Proposed fix

      Find the primary's oplog entry in the checkpoint without relying on the standby's UUID. Options:

      • Have the primary's checkpoint omit the oplog, or mark its entry, so the standby can skip it.
      • Have the standby learn the primary's oplog UUID, for example from replica set state or the checkpoint itself, and remove that UUID instead.
      • Remove any checkpoint entry whose UUID the standby has never seen, if it belongs to the oplog namespace. This needs a way to map the
        primary's UUID to a namespace.

            Assignee:
            Unassigned
            Reporter:
            Stephanie Eristoff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: