You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "zhangchangwei (GitHub)" <gi...@apache.org> on 2019/03/12 03:18:53 UTC

[GitHub] [incubator-dubbo] zhangchangwei opened issue #3635: 关于dubbo提供者新增节点导致post请求二次调用问题


### Environment

* Dubbo version: 2.6.3
* Operating System version: redhat 6.8
* Java version: 1.8.0_144

您好:

最近我在进行测试dubbo服务的热启停,节点增删对前台用户的影响,我使用jmeter进行持续POST请求,在我新增节点启动时,A(正常节点)节点运行正常,可以持续接收POST请求并将数据插入数据库,B节点(新增节点)会出现二次调用POST请求情况,导致应用报错,请问针对dubbo服务在有大量请求使用的前提下,新增节点是否会出现这种情况下?

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3635 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo] zonghaishang commented on issue #3635: 关于dubbo提供者新增节点导致post请求二次调用问题

Posted by "zonghaishang (GitHub)" <gi...@apache.org>.
Try to cancel the default retry behavior, `<dubbo:reference ... retries="0" />`

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3635 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] zonghaishang commented on issue #3635: 关于dubbo提供者新增节点导致post请求二次调用问题

Posted by "zonghaishang (GitHub)" <gi...@apache.org>.
When the application is first initialized, the request may be slower, then trigger times out, and the framework will retry by default.

If you still have problems, you can use the warm-up feature. `<dubbo:service ... warpup="1800000"/>`, warm up for 30 minutes.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3635 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] zhangchangwei commented on issue #3635: 关于dubbo提供者新增节点导致post请求二次调用问题

Posted by "zhangchangwei (GitHub)" <gi...@apache.org>.
> Try to cancel the default retry behavior, `<dubbo:reference ... retries="0" />`

前几次没有设置这个参数就出现了这种情况,后来加上了这个参数还是会出现,尝试多次之后换了dubbo2.6.6版本之后就没再出现,不知道是不是dubbo的bug还是什么问题

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3635 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo] zonghaishang closed issue #3635: 关于dubbo提供者新增节点导致post请求二次调用问题

Posted by "zonghaishang (GitHub)" <gi...@apache.org>.
[ issue closed by zonghaishang ]

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3635 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] zonghaishang commented on issue #3635: 关于dubbo提供者新增节点导致post请求二次调用问题

Posted by "zonghaishang (GitHub)" <gi...@apache.org>.
When the application is first initialized, the request may be slower, then trigger times out, and the framework will retry by default.

If you still have problems, you can use the warm-up feature. `<dubbo:service ... warmup="1800000"/>`, warm up for 30 minutes.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3635 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] zonghaishang commented on issue #3635: 关于dubbo提供者新增节点导致post请求二次调用问题

Posted by "zonghaishang (GitHub)" <gi...@apache.org>.
When the application is first initialized, the request may be slower, then trigger times out, and the framework will retry by default.

If you still have problems, you can use the warm-up feature. `<dubbo:reference ... warpup="1800000"/>`, warm up for 30 minutes.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3635 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org