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

don't terminate in presence of invalid views

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.12
    • Affects Version/s: None
    • Component/s: 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

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

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

              Created:
              Updated:
              Resolved: