[Bug] static JdbcConnectionPoolFactory occurs error when multi sources get Jdbc url #2449
Closed
2 tasks done
Labels
bug
Something isn't working
Search before asking
Flink version
1.17
Flink CDC version
2.4
Database and its version
no Database
Minimal reproduce step
Now JdbcConnectionPoolFactory is often use in JobMaster to reduce connection. In a Job, it's normal to set multiple source, For example, one source from mysql and another source from postgres, and then join them.
Howerver, now as a static variable, JdbcConnectionPoolFactory only have one instance in JobMaster. So only one implements of JdbcConnectionPoolFactory will make sense.The others database will use wrong JdbcConnectionPoolFactory to get jdbc url .
To verify this, only need a simple test:
What did you expect to see?
Three assert return true.
What did you see instead?
The later two assert return false
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: