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

Auto encryption of a $changeStream aggregation fails with obscure error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.2.0-rc4
    • Fix Version/s: 4.2.1, 4.3.1
    • Component/s: None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      Query 2019-09-09, Query 2019-09-23

      Description

      mongocryptd returns the following error message when given a $changeStream pipeline:

      {'ok': 0.0, 'errmsg': 'The $changeStream stage is only supported on replica sets', 'code': 40573, 'codeName': 'Location40573'}
      

      It would be nicer if it returned an error stating that the $changeStream stage is not supported with auto encryption.

      CC Kevin Albertson.

        Attachments

          Activity

            People

            Assignee:
            bernard.gorman Bernard Gorman
            Reporter:
            shane.harvey Shane Harvey
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: