You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/18 20:27:26 UTC
[jira] [Commented] (BEAM-1153) GcsUtil needs to set timeout and
retry explicitly in BatchRequest.
[ https://issues.apache.org/jira/browse/BEAM-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15828723#comment-15828723 ]
ASF GitHub Bot commented on BEAM-1153:
--------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/beam/pull/1608
> GcsUtil needs to set timeout and retry explicitly in BatchRequest.
> ------------------------------------------------------------------
>
> Key: BEAM-1153
> URL: https://issues.apache.org/jira/browse/BEAM-1153
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core
> Reporter: Pei He
> Assignee: Pei He
> Priority: Blocker
> Fix For: 0.4.0
>
>
> Non-batch requests uses RetryHttpRequestInitializer, which set read timeout as 80 seconds, and does more retries.
> Google Cloud auto generated Json library doesn't set HttpRequestInitializer for batch requests.
> GcsUtil uses storageClient.batch(), and it is defined in here:
> https://github.com/vparfonov/google-api-java-client/blob/master/google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClient.java#L256
> Without the HttpRequestInitializer, the default read timeout is 20 seconds.
> Possible fix is: https://github.com/apache/incubator-beam/pull/1608
> In additional, we can partially rollback https://github.com/apache/incubator-beam/pull/1359 to keep using non-batch API for fileSize() for single files. This will make sure existing code will keep work as the same way.
> PR: https://github.com/apache/incubator-beam/pull/1611
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)