question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to specify Spanner connect timeout?

See original GitHub issue

If the client has some kind of network issue connecting to Spanner, it seems to hang indefinitely. Is there a way to specify the timeout? I don’t see anything in SpannerOptions.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
FengnaLiucommented, May 7, 2020

That is strange. Would you mind opening a new issue in https://github.com/googleapis/java-spanner/issues for this problem? That makes it easier for others to also chime in if they have any ideas, and to track the progress of this specific problem.

@olavloite I will open a new issue about this problem. Thanks a lot.

0reactions
olavloitecommented, May 7, 2020

@FengnaLiu

It gave the same error 「504 Deadline Exceeded」 after about 5 hours.

That is strange. Would you mind opening a new issue in https://github.com/googleapis/java-spanner/issues for this problem? That makes it easier for others to also chime in if they have any ideas, and to track the progress of this specific problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring custom timeouts and retries | Cloud Spanner
This page shows you how to override the default timeout configuration and how to configure a retry policy using the Spanner client libraries....
Read more >
Why read-only transaction timeouts in Spanner?
I am trying to run some complex SQL queries on Google Cloud Spanner to evaluate its analytical perfomance. I've ...
Read more >
-timeout flag doesn't work for "gcloud spanner databases ...
When run the command gcloud spanner databases execute-sql --timeout=30m , the underlying request still has a RPC timeout setting as 5 ...
Read more >
Google Cloud Spanner Writer Parameters - Safe Software
This parameter defines the time, in seconds, after which a query will be terminated if it has not yet returned a result. If...
Read more >
CData Cmdlets for Google Spanner - Timeout Parameter (Connect ...
The value in seconds until the timeout error is thrown, canceling the operation. Syntax. Connect-GoogleSpanner -Timeout int. Remarks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found