You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Luke Cwik (Jira)" <ji...@apache.org> on 2019/10/29 21:13:00 UTC
[jira] [Commented] (BEAM-7230) Using JdbcIO creates huge amount of
connections
[ https://issues.apache.org/jira/browse/BEAM-7230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962469#comment-16962469 ]
Luke Cwik commented on BEAM-7230:
---------------------------------
The issue is that PoolableDataSourceProvider stores dataSourceProviderFn as a static which means that it will never be serialized and once it is deserialized it is lost.
This means that any tests that don't include serializing and deserializing the Source/DoFns won't catch this. So remote execution will be broken.
> 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
(v8.3.4#803005)