This happens because of Netty used by CosmsoDB SDK is configured to use max 2 
MB for response body size. So if we query for say 200 docs and each doc is 1 MB 
in size then dependeing on how many returns are returned from a given partition 
it can exceed the default limit of 2 MB. This can now be changed by setting 
system property `MAX_HTTP_BODY_LENGTH_IN_BYTES` to higher value. 

As a proper fix we can add retry logic in CosmosDBArtifactStore query impl by 
checking for this error and then retry with a lesser number of item to fetch 
per individual batch

[ Full content available at: 
https://github.com/apache/incubator-openwhisk/issues/4057 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to