You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2022/06/11 17:48:44 UTC

[hbase] branch branch-2 updated: HBASE-27097 SimpleRpcServer is broken (#4521)

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

apurtell 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 18a1a4bdacc HBASE-27097 SimpleRpcServer is broken (#4521)
18a1a4bdacc is described below

commit 18a1a4bdacc1e428fa21aebf5487ca39ec5f20a6
Author: Andrew Purtell <ap...@apache.org>
AuthorDate: Sat Jun 11 10:40:40 2022 -0700

    HBASE-27097 SimpleRpcServer is broken (#4521)
    
    Apply https://issues.apache.org/jira/secure/attachment/13044874/MultiByteBuff.patch
    from Lijin Bin on JIRA.
    
    Co-authored-by: Lijin Bin <bi...@apache.org>
    Signed-off-by: Lijin Bin <bi...@apache.org>
    Signed-off-by: Viraj Jasani <vj...@apache.org>
---
 .../src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java       | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java
index 003e2305fb9..a3c0b5c528c 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java
@@ -1148,6 +1148,9 @@ public class MultiByteBuff extends ByteBuff {
         offset += len;
       }
       if (buffer.hasRemaining()) {
+        // reset
+        curItem = buffer;
+        curItemIndex = (curItemIndex - 1);
         break;
       }
     }