- I have searched the issues of this repository and believe that this is not a duplicate.
- I have checked the FAQ of this repository and believe that this is not a duplicate.
Environment
- Dubbo version: 2.7.6+
- Operating System version: osx 11.2.3
- Java version: 1.8
Steps to reproduce this issue
- start provider
- config consumer lazyclient_request_with_warning=false
- start consumer
- stop provider & stop provider
- consumer call provider method more then 5000 times
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
no lazyclient_request_with_warning logs
Actual Result
What actually happens?
lazyclient_request_with_warning=false is replaced by :
private void replaceWithLazyClient() {
// this is a defensive operation to avoid client is closed by accident, the initial state of the client is false
URL lazyUrl = url.addParameter(LAZY_CONNECT_INITIAL_STATE_KEY, Boolean.TRUE)
//.addParameter(RECONNECT_KEY, Boolean.FALSE)
.addParameter(SEND_RECONNECT_KEY, Boolean.TRUE.toString())
.addParameter(LazyConnectExchangeClient.REQUEST_WITH_WARNING_KEY, true);
/**
* the order of judgment in the if statement cannot be changed.
*/
if (!(client instanceof LazyConnectExchangeClient) || client.isClosed()) {
client = new LazyConnectExchangeClient(lazyUrl, client.getExchangeHandler());
}
}
If there is an exception, please attach the exception trace:
Just put your stack trace here!
4条答案
按热度按时间ahy6op9u1#
related issue: #6567
yhxst69z2#
related issue: #6567
看到这版修复了,但是只是把异常堆栈去除了。告警日志是否输出应该交给用户去控制。
5f0d552i3#
这个问题目前主干2.7.18-Snapshot版本,直接运行demo/annotation的consumer,还存在
67up9zun4#
1.run dubbo-demo/dubbo-demo-annotation/dubbo-demo-annotation-provider/src/main/java/org/apache/dubbo/demo/provider/Application.java
2. and then run dubbo-demo/dubbo-demo-annotation/dubbo-demo-annotation-consumer/src/main/java/org/apache/dubbo/demo/consumer/Application.java
3. it happens:
[16/10/22 23:28:51:785 CST] DubboShutdownHook WARN dubbo.ReferenceCountExchangeClient: [DUBBO] 192.168.2.1:20880 org.apache.dubbo.demo.DemoService safe guard client , should not be called ,must have a bug., dubbo version: , current host: 192.168.2.1