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

missing_key.js should check its inserts and commands

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.12
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      missing_key.js does some inserts and commands without checking them

      coll.insert({x: 1, z: 1});
      coll.insert({y: 1, z: 1});
      db.adminCommand({enableSharding: 'testDb'});
      

      If these fail, this leads to harder-to-diagnose failures later on. We should use
      assert.writeOK() on the insers and assert.commandWorked on the command.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: