BurningCN commented on a change in pull request #9723:
URL: https://github.com/apache/dubbo/pull/9723#discussion_r832949022
##########
File path:
dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java
##########
@@ -702,6 +728,8 @@ public void destroy() {
}
}
referenceClientMap.clear();
+
+ stubServiceToLatch.clear();
Review comment:
Consider the complexities of `latch.await()`, Can `stubServiceToLatch`
be replaced with this similar structure, `Map<String,Boolean>
stubService2Flag`.When the `connect` event occurs and the `stub invoker` is not
found, execute `stubService2Flag.put(serviceKey, true)`.
When the stub service exposure is completed, check
`if(stubService2Flag.get(serviceKey))`, then call `received(channel,
invocation);`
--
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]