Skip to content

Commit

Permalink
fix(spanner): increase spanner ping timeout to give backend more time…
Browse files Browse the repository at this point in the history
… to process executeSQL requests (#10874)
  • Loading branch information
rahul2393 authored Sep 16, 2024
1 parent d9fc969 commit 6997991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spanner/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (s *session) String() string {

// ping verifies if the session is still alive in Cloud Spanner.
func (s *session) ping() error {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

// Start parent span that doesn't record.
Expand Down

0 comments on commit 6997991

Please sign in to comment.