This is an automated email from the ASF dual-hosted git repository. zhangduo pushed a commit to branch branch-2 in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push: new d984949c373 HBASE-21243 Correct java-doc for the method RpcServer.getRemoteAddress() d984949c373 is described below commit d984949c373260fdd663131d4f0cd5a19debeff6 Author: Nihal Jain <nihaljain...@gmail.com> AuthorDate: Sat Dec 16 20:14:19 2023 +0800 HBASE-21243 Correct java-doc for the method RpcServer.getRemoteAddress() Signed-off-by: Duo Zhang <zhang...@apache.org> (cherry picked from commit d747e15251e0bda9c76c052b2bd6dac1fac5b408) --- .../src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java index 54c18edc12c..94b197f1e3d 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java @@ -779,7 +779,10 @@ public abstract class RpcServer implements RpcServerInterface, ConfigurationObse return getRequestUser().map(User::getShortName); } - /** Returns Address of remote client if a request is ongoing, else null */ + /** + * Returns the address of the remote client associated with the current RPC request or not present + * if no address is set. + */ public static Optional<InetAddress> getRemoteAddress() { return getCurrentCall().map(RpcCall::getRemoteAddress); }