[SERVER-17013] Add 'dry run' mode for cleanupOrphaned Created: 22/Jan/15  Updated: 06/Dec/22  Resolved: 14/Jun/18

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

Type: Improvement Priority: Major - P3
Reporter: rohit.nijhawan@10gen.com Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Won't Fix Votes: 14
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-29879 Provide method for counting orphaned ... Closed
Related
related to SERVER-27590 Duplicate documents in multiple shards Closed
is related to SERVER-17983 Indicate if cleanupOrphaned deleted a... Closed
Assigned Teams:
Sharding
Participants:
Case:

 Description   

The cleanupOrphaned command does not produce a list of documents that a shard shall delete.

In order to see which documents will be removed, some administrators have requested a dry run mode the result of which can include any of:

  1. output documents to a (named) collection
  2. output documents to the log
  3. output documents to a .bson file
  4. output number of documents
  5. output list of _id keys

for the documents that shall be deleted as part of the actual execution of cleanupOrphaned


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