-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: Backlog
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
Sharding EMEA 2021-05-03
-
149
Currently we use DBDirectClient::count() to count the coordinators document stored on disk on step-up. Since we are not using any matching predicate this count will just use collection metadata (indexes) to estimate the number of document.
As stated also by our official doc this count may be incorrect in case of an unclean shutdown.
The proposed fix is to use the $count stage instead.