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:45 UTC
[hbase] branch branch-2.4 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.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new fdb91176b54 HBASE-27097 SimpleRpcServer is broken (#4521)
fdb91176b54 is described below
commit fdb91176b54f87c4f10b928fab654f7103e79b27
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;
}
}