zrlw commented on issue #8805:
URL: https://github.com/apache/dubbo/issues/8805#issuecomment-919741212


   前面还有LazyConnectExchangeClient的warning
   ```
   2021-09-15T03:06:39.5666317Z [15/09/21 03:06:36:036 UTC] DubboShutdownHook  
WARN dubbo.ReferenceCountExchangeClient:  [DUBBO] 192.168.16.2:20880 
org.apache.dubbo.samples.annotation.api.HelloService:1.0.0_annotation safe 
guard client , should not be called ,must have a bug., dubbo version: 
3.0.3-SNAPSHOT, current host: 192.168.16.3
   ```
   warning方法的注解说warn once every 5000 
invocations,但是第一次调用就会warning,因为warningcount为0,模多少都还是0:
   ```
               if (warningcount.get() % warning_period == 0) {
                   logger.warn(url.getAddress() + " " + url.getServiceKey() + " 
safe guard client , should not be called ,must have a bug.");
               }
               warningcount.incrementAndGet();
   ```
   LazyConnectExchangeClient的request为什么会被DubboShutdownHook调用?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to