apache / apache/beam

Python MongoDBIO fails when response of split vector command is larger than 16mb

Open
#20,215 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.