开发者社区> 问答> 正文

canal 1.1.5版本运行一段时间报错

环境信息 canal 1.1.5-SNAPSHOT or 1.1.5 mysql version 5.7.30-log

问题描述 用的是ES7同步,用的1.1.5版本 1.1.5-SNAPSHOT也试过 运行一段时间后canal-adapter报错 2021-09-01 10:42:17.918 [Thread-4] ERROR c.a.otter.canal.adapter.launcher.loader.AdapterProcessor - process error! com.alibaba.otter.canal.protocol.exception.CanalClientException: java.io.IOException: Broken pipe at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.subscribe(SimpleCanalConnector.java:254) ~[na:na] at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.subscribe(SimpleCanalConnector.java:226) ~[na:na] at com.alibaba.otter.canal.connector.tcp.consumer.CanalTCPConsumer.connect(CanalTCPConsumer.java:60) ~[na:na] at com.alibaba.otter.canal.adapter.launcher.loader.AdapterProcessor.process(AdapterProcessor.java:184) ~[client-adapter.launcher-1.1.5-SNAPSHOT.jar:na]

【提问99】

server端是

【提问100】

因为canal报错的时间点 不确定。也不好排查 是因为 server端 链接重置了 还是 因为canal-adapter 报错了,导致 这个一直没有ack 所以 同步滞后

步骤重现

正常启动server和client 运行一段时间后,报错

实际执行情况

adapter端

2021-09-01 10:42:17.918 [Thread-4] ERROR c.a.otter.canal.adapter.launcher.loader.AdapterProcessor - process error! com.alibaba.otter.canal.protocol.exception.CanalClientException: java.io.IOException: Broken pipe at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.subscribe(SimpleCanalConnector.java:254) ~[na:na] at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.subscribe(SimpleCanalConnector.java:226) ~[na:na] at com.alibaba.otter.canal.connector.tcp.consumer.CanalTCPConsumer.connect(CanalTCPConsumer.java:60) ~[na:na] at com.alibaba.otter.canal.adapter.launcher.loader.AdapterProcessor.process(AdapterProcessor.java:184) ~[client-adapter.launcher-1.1.5-SNAPSHOT.jar:na]

server端

2021-08-31 12:43:45.861 [destination = shop , address =xxxx:3306 , EventParser] ERROR c.a.o.c.p.inbound.mysql.rds.RdsBinlogEventParserProxy - dump address xxxx:3306 has an error, retrying. caused by java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[na:1.8.0_262] at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[na:1.8.0_262] at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) ~[na:1.8.0_262] at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) ~[na:1.8.0_262] at java.io.BufferedInputStream.read(BufferedInputStream.java:345) ~[na:1.8.0_262] at com.alibaba.otter.canal.parse.driver.mysql.socket.BioSocketChannel.read(BioSocketChannel.java:109) ~[canal.parse.driver-1.1.5-SNAPSHOT.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.dbsync.DirectLogFetcher.fetch0(DirectLogFetcher.java:174) ~[canal.parse-1.1.5-SNAPSHOT.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.dbsync.DirectLogFetcher.fetch(DirectLogFetcher.java:85) ~[canal.parse-1.1.5-SNAPSHOT.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlConnection.dump(MysqlConnection.java:235) ~[canal.parse-1.1.5-SNAPSHOT.jar:na] at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$3.run(AbstractEventParser.java:265) ~[canal.parse-1.1.5-SNAPSHOT.jar:na] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_262]

原提问者GitHub用户ljy-super

展开
收起
山海行 2023-04-27 15:58:08 98 0
1 条回答
写回答
取消 提交回答
  • java.net.SocketException: Connection reset

    被mysql主动关闭了链接,要么是mysql长时间没变更,要么是啥其他网络问题

    原回答者GitHub用户agapple

    2023-04-27 22:02:18
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云MaxCompute百问百答 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载