Closing a connection tries to close already closed cursors #497
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
When closing a connection the library will call
.close()
on every cursor created for that connection, including closed ones. While the code works, it produces a lot of logs of error level, polluting the logs.Environment details
google-cloud-bigquery
version: 2.7.0Steps to reproduce
Exception closing connection <google.cloud.bigquery.dbapi.connection.Connection object at 0x...>
Code example
Stack trace
Suggested fix
The text was updated successfully, but these errors were encountered: