qianmiopen / dubbo-remoting-netty4 Goto Github PK
View Code? Open in Web Editor NEWThe netty remoting module of dubbo project
License: Apache License 2.0
The netty remoting module of dubbo project
License: Apache License 2.0
这个版本的decode有问题,并发访问的时候出错。
参考下:https://github.com/yfcchilly/dubbox-netty4
可有人说”dubbo中的那些“坑"(3)-netty4-rpc网络接口中的高并发的bug“,不知道你们在使用中是否如他所说呢?
打印调用过程,发现远程调用几次后,客户端发送了消息,服务器端没有收到消息,然后客户端报超时,使用官方netty可以正常调用
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method grantServices in the service com.xxx.spruce.esb.service.AppAccountService. Tried 3 times of the providers 75.81.1.172:20880 from the registry 75.81.1.106:2181 on the consumer 75.81.1.172 using the dubbo version 2.5.4-SNAPSHOT. Last error is: Invoke remote method timeout. method: grantServices, provider: dubbo://75.81.1.172:20880/com.xxx.spruce.esb.service.AppAccountService?anyhost=true&application=bcs-demo-client&check=false&client=netty4&default.delay=-1&default.timeout=5000&delay=-1&dubbo=2.5.4-SNAPSHOT&generic=false&interface=com.xxx.spruce.esb.service.AppAccountService&methods=getAppAccountInfos,changeAppSecret,grantServices,getMqServices,getApiServices,delAppAccountInfo,getAppAccountInfo,getAppAccount,passAppAccountInfo,getAppCertEntity,saveAppAccountInfo&payload=168388608&pid=5376&serialization=dubbo&server=netty4&side=consumer×tamp=1445917875667, cause: Waiting server-side response timeout. start time: 2015-10-27 11:51:27.403, end time: 2015-10-27 11:51:32.411, client elapsed: 0 ms, server elapsed: 5008 ms, timeout: 5000 ms, request: Request [id=14, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=grantServices, parameterTypes=[class com.xxx.spruce.esb.pojo.AppAccountInfo], arguments=[com.xxx.spruce.esb.pojo.AppAccountInfo@122fd03], attachments={path=com.xxx.spruce.esb.service.AppAccountService, interface=com.xxx.spruce.esb.service.AppAccountService, timeout=5000, version=0.0.0}]], channel: /75.81.1.172:51904 -> /75.81.1.172:20880
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:101)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:77)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy0.grantServices(proxy0.java)
at com.xxx.bcs.demo.consumer.DemoConsumer.main(DemoConsumer.java:72)
Caused by: com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout. start time: 2015-10-27 11:51:27.403, end time: 2015-10-27 11:51:32.411, client elapsed: 0 ms, server elapsed: 5008 ms, timeout: 5000 ms, request: Request [id=14, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=grantServices, parameterTypes=[class com.xxx.spruce.esb.pojo.AppAccountInfo], arguments=[com.xxx.spruce.esb.pojo.AppAccountInfo@122fd03], attachments={path=com.xxx.spruce.esb.service.AppAccountService, interface=com.xxx.spruce.esb.service.AppAccountService, timeout=5000, version=0.0.0}]], channel: /75.81.1.172:51904 -> /75.81.1.172:20880
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:107)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:84)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:99)
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144)
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:74)
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:77)
... 5 more
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.