dinky
dinky copied to clipboard
[Bug] [metadata] DriverPool key needs to include a type to distinguish the JDBC connector types.
Search before asking
- [x] I had searched in the issues and found no similar issues.
What happened
两个MySQLCDC任务,先后同步到mysql和postgres,postgres的sink会复用mysql的driver,造成混淆。看代码是org.dinky.metadata.driver.Driver#build方法获取缓存的键值问题。键值为connector,未考虑到connector为jdbc时可能有多种(MySQL、postgres等),因此需要增加缓存维度。计划提交PR
What you expected to happen
两个MySQLCDC任务,先后同步到mysql和postgres,二者互不影响
How to reproduce
复现:两个MySQLCDC任务,先后同步到mysql和postgres。
Anything else
No response
Version
dev
Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
Code of Conduct
- [x] I agree to follow this project's Code of Conduct