Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f606d0b

Browse files
farhan0102gcf-owl-bot[bot]
andauthoredJun 21, 2023
feat: Increase default Read API timeout to 60s (#2764)
* feat: Increase default Read API timeout to 60s * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 50bef38 commit f606d0b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-bigquery'
6060
If you are using Gradle without BOM, add this to your dependencies:
6161

6262
```Groovy
63-
implementation 'com.google.cloud:google-cloud-bigquery:2.27.1'
63+
implementation 'com.google.cloud:google-cloud-bigquery:2.28.0'
6464
```
6565

6666
If you are using SBT, add this to your dependencies:
6767

6868
```Scala
69-
libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.27.1"
69+
libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "2.28.0"
7070
```
7171
<!-- {x-version-update-end} -->
7272

@@ -351,7 +351,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
351351
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-bigquery/java11.html
352352
[stability-image]: https://img.shields.io/badge/stability-stable-green
353353
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg
354-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.27.1
354+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery/2.28.0
355355
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
356356
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
357357
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

‎google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
public class BigQueryOptions extends ServiceOptions<BigQuery, BigQueryOptions> {
3131

3232
private static final String API_SHORT_NAME = "BigQuery";
33+
private static final int DEFAULT_READ_API_TIME_OUT = 60000;
3334
private static final String BIGQUERY_SCOPE = "https://www.googleapis.com/auth/bigquery";
3435
private static final Set<String> SCOPES = ImmutableSet.of(BIGQUERY_SCOPE);
3536
private static final long serialVersionUID = -2437598817433266049L;
@@ -113,7 +114,7 @@ public TransportOptions getDefaultTransportOptions() {
113114
}
114115

115116
public static HttpTransportOptions getDefaultHttpTransportOptions() {
116-
return HttpTransportOptions.newBuilder().build();
117+
return HttpTransportOptions.newBuilder().setReadTimeout(DEFAULT_READ_API_TIME_OUT).build();
117118
}
118119

119120
@Override

0 commit comments

Comments
 (0)
Failed to load comments.