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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc6, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • QO 2022-05-16

      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.

            Assignee:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Reporter:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: