The catalog operations consistency validator (SERVER-90768) maps the result of $listCatalog into the expected result of listCollections and then compares it with the actual result of listCollections.
Some tests intentionally create very large collection definitions in order to test that listCollections correctly handles such large results. However, the catalog operations consistency validator is currently comparing the output of listCollections all at once, which causes it to fail due to running into the 16MB BSON size limit.
The comparison should be done by chunks (e.g. element by element) to avoid running into the BSON size limit.
- related to
-
SERVER-90768 Compare output between listCollections and $listCatalog for the same database and verify equivalence in testing
- Closed