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

Don't abort collection clone due to negative document count

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2, v4.0, v3.6
    • Sprint:
      Repl 2019-09-09
    • Case:

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            mihai.andrei Mihai Andrei
            Reporter:
            bruce.lucas Bruce Lucas
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            25 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: