You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2023/12/16 12:55:42 UTC

(hbase) branch branch-2.6 updated: HBASE-21243 Correct java-doc for the method RpcServer.getRemoteAddress()

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.6 by this push:
     new 3958f911621 HBASE-21243 Correct java-doc for the method RpcServer.getRemoteAddress()
3958f911621 is described below

commit 3958f911621416ffbd78e87f88933da0efda5b74
Author: Nihal Jain <ni...@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 <zh...@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);
   }