Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.6版本的canal-server docker镜像不是从1.1.6版本打包出来的 #4220

Closed
jimmy384 opened this issue Jun 11, 2022 · 5 comments
Closed

Comments

@jimmy384
Copy link

jimmy384 commented Jun 11, 2022

今天尝试升级1.1.6版本,使用了1.1.6版本的canal-server docker 镜像, 发现了一个报错

DatabaseTableMeta类报错了, 有个奇怪的表BASE TABLE,调试代码的时候发现和1.1.6分支的代码对不上,把镜像里的 jar 包反编译,发现DatabaseTableMeta类的代码是1.1.6分支以后的代码

2022-06-11 15:51:23.648 [destination = canalEventForCanalSync , address = mysql/172.24.0.3:3306 , EventParser] ERROR com.alibaba.otter.canal.common.alarm.LogAlarmHandler - destination:canalEventForCanalSync[com.alibaba.otter.canal.parse.exception.CanalParseException: java.io.IOException: ErrorPacket [errorNumber=1146, fieldCount=-1, message=Table 'canal-sync.BASE TABLE' doesn't exist, sqlState=42S02, sqlStateMarker=#]
with command: show create table canal-sync.canal_sync_config;show create table canal-sync.BASE TABLE;
Caused by: java.io.IOException: ErrorPacket [errorNumber=1146, fieldCount=-1, message=Table 'canal-sync.BASE TABLE' doesn't exist, sqlState=42S02, sqlStateMarker=#]
with command: show create table canal-sync.canal_sync_config;show create table canal-sync.BASE TABLE;
at com.alibaba.otter.canal.parse.driver.mysql.MysqlQueryExecutor.queryMulti(MysqlQueryExecutor.java:109)
at com.alibaba.otter.canal.parse.inbound.mysql.MysqlConnection.queryMulti(MysqlConnection.java:111)
at com.alibaba.otter.canal.parse.inbound.mysql.tsdb.DatabaseTableMeta.dumpTableMeta(DatabaseTableMeta.java:233)
at com.alibaba.otter.canal.parse.inbound.mysql.tsdb.DatabaseTableMeta.rollback(DatabaseTableMeta.java:174)
at com.alibaba.otter.canal.parse.inbound.mysql.AbstractMysqlEventParser.processTableMeta(AbstractMysqlEventParser.java:142)
at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$1.run(AbstractEventParser.java:197)
at java.lang.Thread.run(Thread.java:748)

@jimmy384 jimmy384 changed the title 1.1.6版本的docker镜像不是从1.1.6版本打包出来的 1.1.6版本的canal-server docker镜像不是从1.1.6版本打包出来的 Jun 11, 2022
@jimmy384
Copy link
Author

用源码编译出1.1.6版本启动没问题,用1.1.6的docker镜像和 github release 页面下的包都有问题,应该是发布流程出问题了吧

@agapple
Copy link
Member

agapple commented Jun 13, 2022

@bwcx-jzy
Copy link

用源码编译出1.1.6版本启动没问题,用1.1.6的docker镜像和 github release 页面下的包都有问题,应该是发布流程出问题了吧

我用 master 源码编译也有问题

@AaronZhangL
Copy link

应该过滤掉所有SCHEMA名称下的BASE TABLE表名,修改文件[/home/admin/canal-server/conf/{your-db-schema-name}/instance.properties]中的下面设置:

canal.instance.filter.black.regex=.\.BASE TABLE.

下面的写法只会过滤掉特定SCHEMA, new_energy的BASE TABLE表

canal.instance.filter.black.regex=new_energy\.BASE.*

@agapple
Copy link
Member

agapple commented Sep 1, 2022

1.1.6-hotfix版本已修复

@agapple agapple closed this as completed Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants