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

Don't abort collection clone due to negative document count

    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Repl 2019-09-09

      In CollectionCloner::_countCallback we abort the clone if the value returned from the count command on the collection is negative. However, as we document, the value returned by the count command is advisory and may not be accurate, e.g if there was an unclean shutdown. I believe we are (or should be) only using the count for advisory purposes during the clone, so we shouldn't abort the clone if the count is negative, as this can for example prevent initial sync.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            24 Start watching this issue

              Created:
              Updated:
              Resolved: