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

Improve error message for using change streams in a transaction

    • Query
    • Fully Compatible

      The error message you get is something like

      Operation not permitted in transaction :: caused by :: $changeStream cannot run with a readConcern other than 'majority', or in a multi-document transaction. Current readConcern: { readConcern: { level: "snapshot" } }
      

      This doesn't make it clear that no type of transaction is supported with change streams. The word "nor" might be better, but it should be revisited as a whole.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: