-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 3.7, 3.7.1, 3.7.2, 3.8, 3.9
-
Component/s: None
-
None
-
Environment:MongoDB v4.2.1
Python 3.7.4
PyMongo 3.9.0
Performing insert_many with a compressor specified (zlib or zstd) with a large list (~1150 documents, sized on disk ~50MB) triggers an exception on MongoDB server:
BadValue: Decompressed message would be larger than maximum message size
The client will receive an error:
"pymongo.errors.AutoReconnect: connection closed"
Which also an interesting error, because it indicates that it can be retried. Although retrying this would encounter the same problem again.
Removing the compressors argument on the MongoClient, does not trigger the error.
The code, the server log snippet, and the example input file are attached.
- is related to
-
DRIVERS-2137 Add bulk write prose test to ensure that maxMessageSizeBytes is not exceeded
- Backlog