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

View Definition validity inconsistent between primary and secondary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Operating System:
      ALL
    • Linked BF Score:
      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

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

              Dates

              Created:
              Updated:
              Resolved: