Skip to content

[GCP] Clean up Spanner connections on shutdown #567

@haydentherapper

Description

@haydentherapper

Description

Tessera manages the connections to Spanner and GCS. When shutting down a log that uses the Tessera library, there is no way to close GCP connections. We would like a way to invoke the Spanner client Close() for dbPool. It's not strictly required to call the GCS client Close() for gcsClient as noted in the documentation, but it might not be a bad idea just in case there's a future change.

It would be ideal if this could be handled automatically as part of invoking the Shutdown lifecycle function.

The other storage backends may need similar handling for a graceful shutdown, but I didn't look into any others. Maybe a Driver can provide a Shutdown function which is invoked by terminator.Shutdown?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions