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

don't terminate in presence of invalid views

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.12
    • None
    • None
    • Fully Compatible
    • ALL
    • Hide
      Steps to reproduce

      python buildscripts/resmoke.py --executor=jstestfuzz_replication repro.js
      

      repro.js

      var viewsDB = db.getSiblingDB('views_stats');
      assert.writeOK(viewsDB.system.views.insert({z: '\0\uFFFFf'}));
       
      // Wait for the invalid view definition to be replicated to the secondary and then drop the
      // database.
      assert.writeOK(db.await_repl.insert({}, {writeConcern: {w: 2}}));
      viewsDB.dropDatabase();
      

      Show
      Steps to reproduce python buildscripts/resmoke.py --executor=jstestfuzz_replication repro.js repro.js var viewsDB = db.getSiblingDB( 'views_stats' ); assert.writeOK(viewsDB.system.views.insert({z: '\0\uFFFFf' }));   // Wait for the invalid view definition to be replicated to the secondary and then drop the // database. assert.writeOK(db.await_repl.insert({}, {writeConcern: {w: 2}})); viewsDB.dropDatabase();
    • 0

    Description

      As the systems.views collection is directly writable, we should be more forgiving when encountering invalid views.

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: