[fix][cdc-connector][mysql] Fix NoClassDefFoundError when create new table in mysql cdc source
Prepare a Pull Request
Fixes: #3035
Motivation
When we package maven jar for flink-cdc-connector-mysql-cdc module, the flink-cdc-common moduel is excluded. So we can use org.apache.commons.lang3.StringUtils instead of com.ververica.cdc.common.utils.StringUtils and then mysql CDC run correctly when adding new source tables.
Modifications
Change the import of StringUtils from com.ververica.cdc.common.utils to org.apache.commons.lang3
@leonardBang , @PatrickRen , @ruanhang1993 , @Shawn-Hx , Could you please help me review this PR?
Maybe we should includes the flink-cdc-common moduel in flink-cdc-connector-mysql-cdc module? flink-cdc-connector-mysql-cdc also includes some class of flink-cdc-common, such as annotion. But it also seems that flink-cdc-common is too big for flink-cdc-connector-mysql-cdc. It's hard to make a choice.
I have also encountered Does NoClassDefFoundError. Is there a specific class
This pull request has been automatically marked as stale because it has not had recent activity for 60 days. It will be closed in 30 days if no further activity occurs.