[SERVER-61160] Add dryRun option to the collMod command Created: 01/Nov/21  Updated: 29/Oct/23  Resolved: 12/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Task Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-15150 [SERVER] Add dryRun option to the col... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-11-15, Execution Team 2021-11-29
Participants:

 Description   

Running this option with the collMod command indicates that we will not attempt to convert the index.



 Comments   
Comment by Githook User [ 12/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61160 collMod dry run mode with unique:true scans index for duplicates
Branch: master
https://github.com/mongodb/mongo/commit/5b5fce876d4695b4429d1f311f1a2ecc66de597a

Comment by Githook User [ 12/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61160 unique option may not be combined with other modifications under collMod dry run mode
Branch: master
https://github.com/mongodb/mongo/commit/0493dd99e7a4f21d42679c85e97f1eeb4e6dd270

Comment by Githook User [ 12/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61160 add CollModRequest::numModifications
Branch: master
https://github.com/mongodb/mongo/commit/3ad6c069afcc4af85ffe67ab0d1efa2ef2e88786

Comment by Githook User [ 12/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61160 disallow dry run mode for collMod under applyOps
Branch: master
https://github.com/mongodb/mongo/commit/2fb371beb62cb41ad9c0998424e64db48efff651

Comment by Githook User [ 12/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-61160 add dryRun to collMod request

This option directs collMod to attempt the requested modification
without actually updating the database state.

At this time, support is limited to the unique index conversion option.
Branch: master
https://github.com/mongodb/mongo/commit/8289d8a886a1926156e19314f2f68badd1dbc754

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