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

View Definition validity inconsistent between primary and secondary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • None
    • None
    • Querying
    • ALL
    • 17

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: