caishunfeng commented on code in PR #16021:
URL: 
https://github.com/apache/dolphinscheduler/pull/16021#discussion_r1604441464


##########
dolphinscheduler-extract/dolphinscheduler-extract-base/src/main/java/org/apache/dolphinscheduler/extract/base/client/NettyRemotingClient.java:
##########
@@ -54,7 +56,8 @@ public class NettyRemotingClient implements AutoCloseable {
 
     private final Bootstrap bootstrap = new Bootstrap();
 
-    private final ConcurrentHashMap<Host, Channel> channels = new 
ConcurrentHashMap<>(128);
+    private final ReentrantLock channelsLock = new ReentrantLock();

Review Comment:
   Is it better to use `ReentrantReadWriteLock`?



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

Reply via email to