开发者社区> 问答> 正文

[v1.0.26-alpha5]客户端偶尔频发报错:no alive canal server

com.alibaba.otter.canal.protocol.exception.CanalClientException:no alive canal server at com.alibaba.otter.canal.client.impl.ClusterNodeAccessStrategy.nextNode(ClusterNodeAccessStrategy.java:76)~

客户端偶尔频发报以上错误

在Zookeeper中检查

get /otter/canal/destinations/example/running

{"active":true,"address":"xxx.xxx.xxx.xxx","cid":1}

服务端没有报错也是正常的,但客户端会频发报错

在Zookeeper中检查 get /otter/canal/destinations/example/running 结果: Node does not exist : /otter/canal/destinations/example/running

get /otter/canal/destinations/sample/running 结果: Node does not exist : /otter/canal/destinations/sample/running

这种情况频率有些多,虽然可以重试成功,但出现这种问题是不是canal server有问题啊

目前场景: 两个实例example、sample,两个实例中配置一模一样

canal.deployer中log日志中并没有报错,只是Zookeeper中检查不到节点信息

原提问者GitHub用户kervin521

展开
收起
绿子直子 2023-05-09 08:05:46 83 0
1 条回答
写回答
取消 提交回答
  • 出现no alive canal server,肯定是canal server有退出的行为,需要检查server的日志

    原回答者GitHub用户agapple

    2023-05-09 19:36:02
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载