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

Creating a view named system.indexes causes secondary to fassert

    • Fully Compatible
    • ALL
    • Hide
      python buildscripts/resmoke.py --executor=jstestfuzz_replication --storageEngine=wiredTiger repro.js
      

      Note: Does not repro with storage engine mmapv1.

      repro.js
      assert.commandWorked(db.runCommand({"create" : "system.indexes", "viewOn" : "collection", "pipeline" : []}));
      assert.commandWorked(db.runCommand({createIndexes : "testAllGeo", indexes: [ {key: {a : "text"}, name : "a_text"}]}));
      
      Show
      python buildscripts/resmoke.py --executor=jstestfuzz_replication --storageEngine=wiredTiger repro.js Note: Does not repro with storage engine mmapv1. repro.js assert.commandWorked(db.runCommand({ "create" : "system.indexes" , "viewOn" : "collection" , "pipeline" : []})); assert.commandWorked(db.runCommand({createIndexes : "testAllGeo" , indexes: [ {key: {a : "text" }, name : "a_text" }]}));
    • Integration 2016-10-10
    • 0

      Log out from secondary:

      [ReplicaSetFixture:job0:secondary] 2016-09-23T01:15:52.803+0000 D -        [repl writer worker 13] User Assertion: 166:applyOps not supported on view: test.system.indexes src/mongo/db/repl/oplog.cpp 698
      [ReplicaSetFixture:job0:secondary] 2016-09-23T01:15:52.803+0000 F REPL     [repl writer worker 13] writer worker caught exception: 166 applyOps not supported on view: test.system.indexes on: { ts: Timestamp 1474593351000|6, t: 1, h: 5771349231772129373, v: 2, op: "i", ns: "test.system.indexes", o: { v: 2, key: { _fts: "text", _ftsx: 1 }, name: "a_text", ns: "test.testAllGeo", weights: { a: 1 }, default_language: "english", language_override: "language", textIndexVersion: 3 } }
      [ReplicaSetFixture:job0:secondary] 2016-09-23T01:15:52.803+0000 I -        [repl writer worker 13] Fatal assertion 16359 CommandNotSupportedOnView: applyOps not supported on view: test.system.indexes at src/mongo/db/repl/sync_tail.cpp 1042
      [ReplicaSetFixture:job0:secondary] 2016-09-23T01:15:52.803+0000 I -        [repl writer worker 13]
      [ReplicaSetFixture:job0:secondary] 
      [ReplicaSetFixture:job0:secondary] ***aborting after fassert() failure
      [ReplicaSetFixture:job0:secondary] 
      

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            eddie.louie Eddie Louie
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: