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

View Definition validity inconsistent between primary and secondary

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • ALL
    • 17

      replicated_collection_infos.js

      (function() {
       const rst = new ReplSetTest(
      
      {nodes: 2}
      
      );
       rst.startSet();
       rst.initiate();
      
      const testDB = rst.getPrimary().getDB('$gt');
       assert.commandWorked(testDB.createView('testView', 'testColl', []));
       rst.awaitReplication();
       rst.getPrimary().getDB('$gt').getCollectionInfos({name: {$in: ['testView', 'testColl']}});
      
      rst.getSecondary().getDB('$gt').getCollectionInfos({name: {$in: ['testView', 'testColl']}});
      
      rst.stopSet();
       })();
      

      Run as: resmoke replicated_collection_infos.js

      The primary.getCollectionInfos succeeds but the secondary.getCollectionInfos fails.

            Assignee:
            misha.ivkov@mongodb.com Mikhail Ivkov (Inactive)
            Reporter:
            misha.ivkov@mongodb.com Mikhail Ivkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: