开发者

AppEngine Task Queue exception upon message too big

开发者 https://www.devze.com 2023-04-05 15:43 出处:网络
After reading TaskOptions and Queue from the AppEngine Javadoc API, I can\'t find which exception gets thrown when the payload of the Task exceeds the limit of 100KB. Where could I find this informati

After reading TaskOptions and Queue from the AppEngine Javadoc API, I can't find which exception gets thrown when the payload of the Task exceeds the limit of 100KB. Where could I find this information?

UPDATE: Filed开发者_Python百科 a request for a more specific exception.


Found my answer looking at the source code.

if (txn != null &&
        bulkAddRequest.encodingSize() > QueueConstants.maxTransactionalRequestSizeBytes()) {
      throw new IllegalArgumentException(
          String.format("Transactional add may not be larger than %d bytes: %d bytes requested.",
              QueueConstants.maxTransactionalRequestSizeBytes(),
              bulkAddRequest.encodingSize()));
    }
0

精彩评论

暂无评论...
验证码 换一张
取 消