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

Ignore NamespaceNotFound errors when running collMod during checkReplicaSet in replsettest.js

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.7, 4.0.2, 4.1.2
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Repl 2018-07-02, Repl 2018-07-16, Repl 2018-07-30
    • 37

    Description

      When running checkReplicaSet in replsettest.js, we run collMod on all the collections to wait for any index builds before running awaitReplication. However, if there is a background thread running a command, it could potentially drop a collection after listCollections but before collMod, causing a "NamespaceNotFound" error.

      To fix this, check the output of runCommand to see if there was a "NamespaceNotFound" error and if so, ignore it.

      Attachments

        Activity

          People

            samy.lanka@mongodb.com Samyukta Lanka
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: