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

Improve error message for using change streams in a transaction

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Diagnostics, Usability
    • Labels:
    • Backwards Compatibility:
      Fully Compatible

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: