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

Do not use fastcount to count DDL coordinators on stepUp

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding EMEA 2021-05-03
    • 149

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: