-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding 2021-02-08
-
23
-
None
-
None
-
None
-
None
-
None
-
None
-
None
In this moveChunk we should pass {_waitForDelete: true} to ensure that when the moveChunk command returns, the range deletion (which is started by the move chunks but executes asynchronously) has finished.
If we don't do this, this $collStats could return a totalIndexSize different than what it will be after the range deletion has actually finished.