【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】OMS
【 使用版本 】feature_4.2.4_ce
【问题描述】在完成以下的正向切换启动反向增量同步后,在查看该数据迁移任务组件时发现Incr-Sync组件出于异常状态,查看日志如下:
错误日志:
1
[2024-09-05 11:04:09.938] [ERROR] [main] [notifyStopped:]
2
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database ‘omstxndb’
3
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
4
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
5
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
6
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
7
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
8
at com.mysql.jdbc.Util.getInstance(Util.java:408)
9
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)
10
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3978)
11
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3914)
12
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530)
13
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2683)
14
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2491)
15
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2449)
16
at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:845)
17
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:745)
18
at com.alibaba.druid.pool.DruidPooledStatement.execute(DruidPooledStatement.java:644)
19
at com.oceanbase.oms.connector.jdbc.sink.mysql.MySQLSQLDialect.sqlExecute(MySQLSQLDialect.java:110)
20
at com.oceanbase.oms.connector.jdbc.sink.mysql.MySQLSQLDialect.createAndCheckAppendTable(MySQLSQLDialect.java:84)
21
at com.oceanbase.oms.connector.jdbc.sink.transactionmark.AppendMarker.init(AppendMarker.java:48)
22
at com.oceanbase.oms.connector.jdbc.sink.AbstractJDBCSinkBooster.initializeTransactionMarker(AbstractJDBCSinkBooster.java:217)
23
at com.oceanbase.oms.connector.jdbc.sink.AbstractJDBCSinkBooster.initSinkEnv(AbstractJDBCSinkBooster.java:106)
24
at com.oceanbase.oms.connector.coordinator.BootStrapPanel.boot(BootStrapPanel.java:195)
25
at com.oceanbase.oms.connector.jdbc.coordinator.Bootstrap.main(Bootstrap.java:41)
26
[2024-09-05 11:04:09.944] [ERROR] [main] [main thread error]
27
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database ‘omstxndb’
28
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
29
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
30
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
31
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
32
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!