guohao commented on code in PR #9954:
URL: https://github.com/apache/dubbo/pull/9954#discussion_r856244886


##########
dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/Connection.java:
##########
@@ -192,10 +192,8 @@ public boolean isAvailable() {
         if (channel != null && channel.isActive()) {
             return true;
         }
-        synchronized (this) {

Review Comment:
   Assume that thread 1 passes the cas , thread2 skips the cas, no matter 
thread1 or thread2 creates a promise, both threads will wait for it complete.



-- 
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