CrazyHZM commented on code in PR #13773: URL: https://github.com/apache/dubbo/pull/13773#discussion_r1496865927
########## dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/directory/AbstractDirectory.java: ########## @@ -414,25 +441,29 @@ private void refreshInvokers(BitList<Invoker<T>> targetInvokers, Collection<Invo @Override public void addDisabledInvoker(Invoker<T> invoker) { - if (invokers.contains(invoker)) { - disabledInvokers.add(invoker); - removeValidInvoker(invoker); - logger.info("Disable service address: " + invoker.getUrl() + "."); - } + LockUtils.safeLock(invokerRefreshLock, 60_000, () -> { Review Comment: This lock is not required. -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org