ruanwenjun commented on code in PR #16021:
URL:
https://github.com/apache/dolphinscheduler/pull/16021#discussion_r1604449090
##########
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:
This lock only used in write operation(change the channels map), the read
operation will not use this lock.
--
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]