-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spanner: nil pointer exception in session.go #9048
Comments
Hi, we are facing the same issue and have detected panic in our production environment. An effective workaround seems to be either downgrading to v1.52.0 or configuring the SessionPoolConfig as follows, ensuring that the problematic processes do not execute as they would in v1.52.0. spannerClient, err := spanner.NewClientWithConfig(ctx, "projects/.../instances/.../databases/...",
spanner.ClientConfig{
SessionPoolConfig: spanner.SessionPoolConfig{
MaxOpened: spanner.DefaultSessionPoolConfig.MaxOpened,
MinOpened: spanner.DefaultSessionPoolConfig.MinOpened,
MaxIdle: spanner.DefaultSessionPoolConfig.MaxIdle,
InactiveTransactionRemovalOptions: spanner.InactiveTransactionRemovalOptions{
ActionOnInactiveTransaction: spanner.NoAction, // or spanner.Close, if you'd like to enable long running transaction clean up
},
},
},
) |
The issue seems to be related to the following process, which logs the possibility of a session leak: google-cloud-go/spanner/session.go Lines 729 to 744 in 5d5e547
In this section, |
Previous version includes a potential nil pointer exception. See [issue](googleapis/google-cloud-go#9048) and [fix](googleapis/google-cloud-go#9052) for more information.
Previous version includes a potential nil pointer exception. See [issue](googleapis/google-cloud-go#9048) and [fix](googleapis/google-cloud-go#9052) for more information.
Client
Spanner 1.53.0
Environment
nonroot
Go Environment
Screenshots
Additional context
Started after upgrading to 1.53.0
The text was updated successfully, but these errors were encountered: