Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Gone away
-
None
-
None
-
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.