You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/10/08 09:29:18 UTC

[GitHub] chetanmeh commented on issue #4057: Listing big activations may result in error with Cosmos

chetanmeh commented on issue #4057: Listing big activations may result in error with Cosmos
URL: https://github.com/apache/incubator-openwhisk/issues/4057#issuecomment-427771729
 
 
   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

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services