Skip to content

Commit 40ad071

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
Docsp-23332 clean up orphan docs (#1346) (#1385)
* DOCSP-23332-clean-up-orphan-docs * DOCSP-23332-clean-up-orphan-docs * DOCSP-23332-clean-up-orphan-docs * DOCSP-23332-clean-up-orphan-docs * DOCSP-23332-clean-up-orphan-docs Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
1 parent e973782 commit 40ad071

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source/reference/command/cleanupOrphaned.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,21 @@ Definition
1717

1818
.. versionchanged:: 4.4
1919

20-
Starting in MongoDB 4.4, :term:`chunk` migrations and orphaned
21-
document cleanup are more resilient to failover. The cleanup process
22-
automatically resumes in the event of a failover. You no longer need
23-
to run the :dbcommand:`cleanupOrphaned` command to clean up orphaned
24-
documents. Instead, use this command to wait for orphaned documents
25-
in a chunk range from a shard key's
26-
:doc:`minKey</reference/bson-types>` to its
20+
**For orphaned documents generated after upgrading to MongoDB
21+
4.4:** :term:`chunk` migrations and orphaned document cleanup are
22+
more resilient to failover. The cleanup process automatically resumes
23+
in the event of a failover. You no longer need to run the
24+
:dbcommand:`cleanupOrphaned` command to clean up orphaned documents.
25+
Instead, use this command to wait for orphaned documents in a chunk
26+
range from a shard key's :doc:`minKey</reference/bson-types>` to its
2727
:doc:`maxKey</reference/bson-types>` for a specified namespace to be
2828
cleaned up from a majority of a shard's members.
2929

30+
**For orphaned documents generated before upgrading to MongoDB
31+
4.4**: the orphaned documents are not automatically cleaned up after
32+
upgrading to MongoDB 4.4 and you must use
33+
:dbcommand:`cleanupOrphaned` to clean up the orphaned documents.
34+
3035
In MongoDB 4.2 and earlier, :dbcommand:`cleanupOrphaned` initiated
3136
the cleanup process for orphaned documents in a specified namespace
3237
and shard key range.

0 commit comments

Comments
 (0)