[DOCS-15150] [SERVER] Add dryRun option to the collMod command Created: 07/Mar/22  Updated: 31/Jan/24

Status: Backlog
Project: Documentation
Component/s: manual, Server
Affects Version/s: 5.3.0, 6.0.0
Fix Version/s: 5.2.0

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Ashley Brown
Resolution: Unresolved Votes: 0
Labels: backlog, request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-61160 Add dryRun option to the collMod command Closed
Related
Participants:
Days since reply: 1 year, 48 weeks, 2 days ago
Epic Link: DOCSP-22764
Story Points: 2

 Description   
Original Downstream Change Summary

Add a new option, "dryRun", to the collMod command that is not a part of the stable API.

When running collMod with unique: true and dryRun: true on an existing non-unique index, the server will scan every key and check for duplicates. If duplicates are detected, it will return a CannotConvertIndexToUnique error with a list of violations. The user is expected to fix these conflicting documents before expecting a successful conversion.

This flag is only meant to be used alongside "unique: true". Other combinations are disallowed.

Description of Linked Ticket

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


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