[ 
https://issues.apache.org/jira/browse/BEAM-7230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848512#comment-16848512
 ] 

Ismaël Mejía commented on BEAM-7230:
------------------------------------

Hi, sorry I have missed your comment.

I tried to reproduce this but cannot get the same error. Can you give me some 
more details? I tried both for a Read and a Write with success results.

dataSourceProviderFn will not be null once PoolableDataSourceProvider instance 
is created via `of`. Only thing that I can foresee is a possible issue of 
serialization if you are building the DataSource eagerly, but that does not 
seem to be the case at least with the code pasted here.

> Using JdbcIO creates huge amount of connections
> -----------------------------------------------
>
>                 Key: BEAM-7230
>                 URL: https://issues.apache.org/jira/browse/BEAM-7230
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-dataflow
>    Affects Versions: 2.11.0
>            Reporter: Brachi Packter
>            Assignee: Ismaël Mejía
>            Priority: Major
>             Fix For: 2.13.0
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> I want to write form DataFlow to GCP cloud SQL, I'm using connection pool, 
> and still I see huge amount of connections in GCP SQL (4k while I set 
> connection pool to 300), and most of them in sleep.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to