guohao-rosicky commented on PR #5026: URL: https://github.com/apache/ozone/pull/5026#issuecomment-1628498488
The client needs to access the port of the stream service when communicating with the stream server. This port is provided in the DatanodeDetails provided by the datanode report. If the stream service is not enabled on the datanode, there will be no stream port in the DatanodeDetails. See: org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis#start https://github.com/apache/ozone/blob/master/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java#L530 The stream port has a default value that is incorrect when a client connects to the stream server. See: org.apache.hadoop.hdds.protocol.DatanodeDetails#getPort https://github.com/apache/ozone/blob/master/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/protocol/DatanodeDetails.java#L319 -- 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]
