Skip to content

Commit 12b2e67

Browse files
committed
feat: Increase default Read API timeout to 60s
1 parent 50bef38 commit 12b2e67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionSettings.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ public abstract static class Builder {
209209

210210
Builder withDefaultValues() {
211211
return setUseReadAPI(true) // Read API is enabled by default
212+
.setRequestTimeout(60000L) // Read API default timeout set to 60s
212213
.setNumBufferedRows(10000) // 10K records will be kept in the buffer (Blocking Queue)
213214
.setMinResultSize(200000) // Read API will be enabled when there are at least 100K records
214215
.setTotalToPageRowCountRatio(3) // there should be at least 3 pages of records
@@ -229,7 +230,7 @@ Builder withDefaultValues() {
229230
* out and returns. Note that this is only a timeout for the request, not the query. If the
230231
* query takes longer to run than the timeout value, the call returns without any results and
231232
* with the 'jobComplete' flag set to false. You can call GetQueryResults() to wait for the
232-
* query to complete and read the results. The default value is 10000 milliseconds (10 seconds).
233+
* query to complete and read the results. The default value is 60000 milliseconds (60 seconds).
233234
*
234235
* @param timeoutMs or {@code null} for none
235236
*/

0 commit comments

Comments
 (0)