@@ -17,16 +17,21 @@ Definition
17
17
18
18
.. versionchanged:: 4.4
19
19
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
27
27
:doc:`maxKey</reference/bson-types>` for a specified namespace to be
28
28
cleaned up from a majority of a shard's members.
29
29
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
+
30
35
In MongoDB 4.2 and earlier, :dbcommand:`cleanupOrphaned` initiated
31
36
the cleanup process for orphaned documents in a specified namespace
32
37
and shard key range.
0 commit comments