yandrey321 commented on code in PR #9718:
URL: https://github.com/apache/ozone/pull/9718#discussion_r2774534155
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java:
##########
@@ -171,15 +173,14 @@ private synchronized void
connectToDatanode(DatanodeDetails dn)
OzoneConfigKeys.HDDS_CONTAINER_IPC_PORT_DEFAULT);
}
- if (LOG.isDebugEnabled()) {
- LOG.debug("Connecting to server : {}; nodes in pipeline : {}, ",
- dn, pipeline.getNodes());
- }
+ LOG.debug("Connecting to server : {}; nodes in pipeline : {}, ", dn,
pipeline.getNodes());
+
ManagedChannel channel = createChannel(dn, port).build();
- XceiverClientProtocolServiceStub asyncStub =
- XceiverClientProtocolServiceGrpc.newStub(channel);
- asyncStubs.put(dn.getID(), asyncStub);
- channels.put(dn.getID(), channel);
+ XceiverClientProtocolServiceStub asyncStub =
XceiverClientProtocolServiceGrpc.newStub(channel);
Review Comment:
And
asyncStubs.putIfAbsent(dn.getID(),
XceiverClientProtocolServiceGrpc.newStub(channel));
--
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]