[ https://issues.apache.org/jira/browse/FLINK-36696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rui Fan resolved FLINK-36696. ----------------------------- Resolution: Fixed Merged to main(1.11.0) via: d5d027e4bd7752b08043f8aa196f7a20c7afeda0 > JDBC Autoscaler plugin should use DataSource and not connection > --------------------------------------------------------------- > > Key: FLINK-36696 > URL: https://issues.apache.org/jira/browse/FLINK-36696 > Project: Flink > Issue Type: Bug > Components: Autoscaler > Reporter: Sai Sharath Dandi > Assignee: Sai Sharath Dandi > Priority: Major > Labels: pull-request-available > Fix For: kubernetes-operator-1.11.0 > > > The flink-autoscaler-plugin-jdbc uses a single > [Connection|https://github.com/apache/flink-kubernetes-operator/blob/main/flink-autoscaler-plugin-jdbc/src/main/java/org/apache/flink/autoscaler/jdbc/state/JdbcStateInteractor.java#L38] > to interact with the Database. It is very suboptimal as multiple threads > will not be able to query the database concurrently. Instead, we should use a > datasource and request for connection from connection pool, each time we need > one. -- This message was sent by Atlassian Jira (v8.20.10#820010)