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 2022/08/04 15:14:25 UTC

[hbase] branch master updated: HBASE-27271 Addendum use NettyFutureUtils

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 2ac55787308 HBASE-27271 Addendum use NettyFutureUtils
2ac55787308 is described below

commit 2ac5578730858af4763ca0906aebce8aba58c8f8
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Thu Aug 4 23:14:04 2022 +0800

    HBASE-27271 Addendum use NettyFutureUtils
---
 .../src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcConnection.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcConnection.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcConnection.java
index a0e2430125d..f761ec0b2dc 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcConnection.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcConnection.java
@@ -239,7 +239,7 @@ class NettyRpcConnection extends RpcConnection {
             p.addBefore(BufferCallBeforeInitHandler.NAME, readTimeoutHandlerName,
               new ReadTimeoutHandler(RpcClient.DEFAULT_SOCKET_TIMEOUT_READ, TimeUnit.MILLISECONDS))
               .addBefore(BufferCallBeforeInitHandler.NAME, null, chHandler);
-            connectionHeaderPromise.addListener(new FutureListener<Boolean>() {
+            NettyFutureUtils.addListener(connectionHeaderPromise, new FutureListener<Boolean>() {
               @Override
               public void operationComplete(Future<Boolean> future) throws Exception {
                 if (future.isSuccess()) {