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

Change streams UUID mismatch uasserts with error code that causes invariant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc4
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Epic Link:
    • Sprint:
      Query 2017-11-13

      Description

      Found while writing the tests for SERVER-31392, the DocumentSourceChangeStream hits a uassert when the UUID in the oplog entry mismatches the UUID in the scoped collection metadata. Returning ErrorCodes::StaleConfig results in a dynamic_cast a few layers up, and eventually an invariant. I am not sure we should hit this uassert at all (a separate discussion), but for sure it doesn't seem like we should be returning this status.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: