Skip to content

Commit ab8d501

Browse files
committed
fix: Reduce the timeout to 3 minutes for the requests wait time in queue.
Since in write api server side we have total timeout of 2 minutes, it does not make sense to wait 15 minutes to determine whether we have met dead connection, let's reduce the timeout here
1 parent ea2e8fb commit ab8d501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ConnectionWorker implements AutoCloseable {
7575
* We will constantly checking how much time we have been waiting for the next request callback
7676
* if we wait too much time we will start shutting down the connections and clean up the queues.
7777
*/
78-
static Duration MAXIMUM_REQUEST_CALLBACK_WAIT_TIME = Duration.ofMinutes(15);
78+
static Duration MAXIMUM_REQUEST_CALLBACK_WAIT_TIME = Duration.ofMinutes(3);
7979

8080
private Lock lock;
8181
private Condition hasMessageInWaitingQueue;

0 commit comments

Comments
 (0)