Improve error logging in change stream event transform

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The $_internalChangeStreamTransform stage raises tasserts whenever it encounters an oplog entry of an unknown type, e.g.

      Whenever one of these tasserts hits, we abort the change stream processing, with a message Hit a MONGO_UNREACHABLE_TASSERT!, in ChangeStreamDefaultEventTransformation::applyTransformation, which is correct, but not very helpful to figure out what exact oplog entry caused the problem.
      This problem was uncovered by AF-8117 on r8.0.15, which ran into the exact same issue but left us guessing what exact oplog entry caused the problem.

      For all these tasserts, we should provide a better error message with more details about the event (if possible), and also log a warning into MongoDB log for posteriority purposes.

            Assignee:
            Sebastien Mendez
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: