在使用cananl-adapter和canalserver的时候,canal-adapter报错: 2021-03-31 19:16:34.568 [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] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_262] Caused by: java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[na:1.8.0_262] at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[na:1.8.0_262] at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[na:1.8.0_262] at sun.nio.ch.IOUtil.write(IOUtil.java:65) ~[na:1.8.0_262] at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:468) ~[na:1.8.0_262] at java.nio.channels.Channels.writeFullyImpl(Channels.java:78) ~[na:1.8.0_262] at java.nio.channels.Channels.writeFully(Channels.java:98) ~[na:1.8.0_262] at java.nio.channels.Channels.access$000(Channels.java:61) ~[na:1.8.0_262] at java.nio.channels.Channels$1.write(Channels.java:174) ~[na:1.8.0_262] at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:458) ~[na:1.8.0_262] at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.writeWithHeader(SimpleCanalConnector.java:393) ~[na:na] at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.writeWithHeader(SimpleCanalConnector.java:381) ~[na:na] at com.alibaba.otter.canal.client.impl.SimpleCanalConnector.subscribe(SimpleCanalConnector.java:235) ~[na:na] ... 4 common frames omitted
canal-server日志报错:
2021-03-31 18:42:42.248 [Hashed wheel timer #1] WARN c.a.o.c.server.netty.handler.ClientAuthenticationHandler - channel:[id: 0x2ec089ff, /127.0.0.1:57614 => /127.0.0.1:11111] idle timeout exceeds, close channel to save server resources...
虽然根据 issue#640 可以知道是因为 idle timeout 设置的连接有效时间为一小时,超时就会报错 但是这个配置似乎是代码中写死的,不可以进行配置。 请问如何修改 idletimeout 的大小或者如何避免这个问题呢? 看了相关issue没有找到结论,希望能够有人帮助一下
原提问者GitHub用户yilongchuan
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。