- 
    Type:Bug 
- 
    Resolution: Fixed
- 
    Priority:Critical - P2 
- 
    Affects Version/s: None
- 
    Component/s: mongorestore
- 
    None
- 
        v4.2
We need to create a bsonSource with maxBSONSize of 16 MB + 16 KB. Issue is with this line in oplog.go:
bsonSource := db.NewDecodedBSONSource(db.NewBufferlessBSONSource(intent.BSONFile))
Probably worth backporting this to 4.2.
- backported by
- 
                    TOOLS-2562 [v4.2] Oplog replay can't handle entries > 16 MB -         
- Closed
 
-         
- duplicates
- 
                    SERVER-47408 oplog documents from transactions can breach the maximum bson size and break mongorestore -         
- Closed
 
-         
- is duplicated by
- 
                    TOOLS-2542 Investigate oplog document size limit exceeded -         
- Closed
 
-         
- links to