-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Comments
用源码编译出1.1.6版本启动没问题,用1.1.6的docker镜像和 github release 页面下的包都有问题,应该是发布流程出问题了吧 |
我用 master 源码编译也有问题 |
应该过滤掉所有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.* |
1.1.6-hotfix版本已修复 |
今天尝试升级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 tablecanal-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 tablecanal-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)
The text was updated successfully, but these errors were encountered: