Skip to content

[Bug] [metadata] DriverPool key needs to include a type to distinguish the JDBC connector types. #4514

@jrnie

Description

@jrnie

Search before asking

  • 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?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions