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

Change streams UUID mismatch uasserts with error code that causes invariant

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc4
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Query 2017-11-13

      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.

            Assignee:
            bernard.gorman@mongodb.com Bernard Gorman
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: