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

mongos passes encryptionInformation from BatchedCommandRequest to shards after rewrite for explain commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.0-rc6, 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • QO 2022-05-16

    Description

      Mongos doesn't remove the encryptionInformation from a DeleteRequest or a UpdateRequest after performing the server-side rewrite like it does for all other commands. This means that the explain command is forwarded on to each shard with encryptionInformation, and the shards attempt to perform rewrites. While this is a no-op, internal distributed transactions from mongod nodes within a sharded cluster are not supported and may have unintended consequences.

      Attachments

        Activity

          People

            davis.haupt@mongodb.com Davis Haupt
            davis.haupt@mongodb.com Davis Haupt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: