Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56169

Do not use fastcount to count DDL coordinators on stepUp

    • 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.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: