Python MongoDBIO fails when response of split vector command is larger than 16mb
Open
bug
io
mongodb
P3
python
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
When using MongoDBIO on a large collection with large documents on average, then the split vector command results in a lot of splits if the desired bundle size is small. In extreme cases, the response from the split vector command can be larger than 16mb which is not supported by pymongo / MongoDB:
`pymongo.errors.ProtocolError: Message length (33699186) is larger than server max message size (33554432)`
Environment: Was running this on Google Dataflow / Beam Python SDK 2.20.
Imported from Jira [BEAM-9960](https://issues.apache.org/jira/browse/BEAM-9960). Original Jira may contain additional context.
Reported by: corvin.
Contributor guide
Assessment
This issue has not been assessed yet.