SERVER-136713Needs Merge

Add testing for index builds on edge case documents

An idea that has come up repeatedly is to create a corpus of edge case BSON documents that we can use for deterministically testing the database. The linked BF is an example where that could have helped, as empty array vs sub-document is a known cause of subtle issues. Other examples would be very large documents, very large keys, very many keys, different geo data formats, very deeply nested documents, strings with non-UTF8 contents. We would want all BSON types, including deprecated (but allow

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.