This is an automated email from the ASF dual-hosted git repository. zhangduo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push: new d747e15251e HBASE-21243 Correct java-doc for the method RpcServer.getRemoteAddress() d747e15251e is described below commit d747e15251e0bda9c76c052b2bd6dac1fac5b408 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> --- .../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 f48183d0ee6..6b4bf28bc95 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 @@ -790,7 +790,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); }