You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a StreamWrite with .setEnableConnectionPool(true).
Write to a BigQuery table that fails, e.g. because it doesn't exist, or the schema is wrong. (why? because some times the schema is out of sync. Nevertheless, such a condition should not cause a memory leak). Keep sending traffic to (2) persistently.
Observe that com.google.cloud.bigquery.storage.v1.ConnectionWorkerPool is continually creating new ConnectionWorkers (expected), but old and isConnectionInUnrecoverableState() ConnectionWorkers are retained in field connectionToWriteStream (bug), and never closeed (bug)
: the cleanup operation neither removes the ConnectionWorker from the other field that tracks the ConnectionWorker object, connectionToWriteStream, nor closes it.
Environment details
General, Core, and Other are also allowed as types
Steps to reproduce
.setEnableConnectionPool(true)
.com.google.cloud.bigquery.storage.v1.ConnectionWorkerPool
is continually creating new ConnectionWorkers (expected), but old andisConnectionInUnrecoverableState()
ConnectionWorkers are retained in fieldconnectionToWriteStream
(bug), and neverclose
ed (bug)Code example
Problem is caused by
java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPool.java
Line 338 in d8d5278
Stack trace
None captured
External references such as API reference guides
Any additional information below
The following is the diff between 26.17.0 and the current main branch version:
I don't think this issue is fixed by upgrading.
The text was updated successfully, but these errors were encountered: