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

remove index3.js

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2022-06-27

    Description

      This test creates an index on a single field and checks the number of indexes from listIndexes afterwards. We should be able to remove this test without losing test coverage:

      // Cannot implicitly shard accessed collections because of extra shard key index in sharded
      // collection.
      // @tags: [assumes_no_implicit_index_creation]
       
      t = db.index3;
      t.drop();
       
      assert(t.getIndexes().length == 0);
       
      t.createIndex({name: 1});
       
      t.save({name: "a"});
       
      t.createIndex({name: 1});
       
      assert(t.getIndexes().length == 2);
       
      assert(t.validate().valid);
      

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: