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

missing_key.js should check its inserts and commands

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.12
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL

      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.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: