Change streams UUID mismatch uasserts with error code that causes invariant

XMLWordPrintableJSON

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

      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
              Reporter:
              Nicholas Zolnierz
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: