-
Type: Bug
-
Resolution: Gone away
-
Priority: 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.