Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-41113

Ignore NamespaceNotFound exceptions when applying transactions during initial sync and recovery

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.14
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2019-06-03
    • 0

      The collection may have been dropped since we are applying operations out of order.

      We ignore NamespaceNotFound errors in normal oplog application here.

      But we don't do it here. The applyOps command doesn't seem to ignore these errors either, so wherever we use that code path to apply transaction operations we likely need to do the same.

      This was found from code inspection and I haven't created a repro, so it's possible something prevents this from causing a problem.

      It'll be interesting to see if the initial sync fuzzer catches this once it supports transactions, max.hirschhorn.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: