Migration of txn oplog entries can trigger fassert in secondary replication

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.1, 3.7.1
    • Affects Version/s: 3.6.0-rc6
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • v3.6
    • Sharding 2018-01-01
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      During migration, oplog entries generated by transactions are converted to type 'n' no-op entries and sent to the destination side. These new oplog entries also retain the original fields, like 'ns' and 'uuid'. If the collection with the same name is drop and re-sharded, the secondaries will trigger an fassert when processing this type 'n' entries because the uuid no longer exists.

      Example log in secondary:

      Fatal assertion 16359 NamespaceNotFound: Failed to apply operation due to missing collection (32c50ae4-cec3-4f80-b70a-d1a60a74835c): ...
      

            Assignee:
            Randolph Tan
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: