[SERVER-66366] mongos passes encryptionInformation from BatchedCommandRequest to shards after rewrite for explain commands Created: 10/May/22  Updated: 29/Oct/23  Resolved: 11/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc6, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Davis Haupt (Inactive) Assignee: Davis Haupt (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: QO 2022-05-16
Participants:

 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.



 Comments   
Comment by Githook User [ 13/May/22 ]

Author:

{'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}

Message: SERVER-66366 remove encryptionInformation after rewriting update and delete requests for explain commands
Branch: v6.0
https://github.com/mongodb/mongo/commit/465ca1e4592f08f940e311b7852efe6147077486

Comment by Githook User [ 11/May/22 ]

Author:

{'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}

Message: SERVER-66366 remove encryptionInformation after rewriting update and delete requests for explain commands
Branch: master
https://github.com/mongodb/mongo/commit/e9ef8712950721efa7cf880e6db8b4b6638b9361

Generated at Thu Feb 08 06:05:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.