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 <binlijin@apache.org>
Signed-off-by: Lijin Bin <binlijin@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
Andrew Purtell 2022-06-11 10:40:40 -07:00
parent 42a51545f1
commit fdb91176b5
1 changed files with 3 additions and 0 deletions

View File

@ -1148,6 +1148,9 @@ public class MultiByteBuff extends ByteBuff {
offset += len; offset += len;
} }
if (buffer.hasRemaining()) { if (buffer.hasRemaining()) {
// reset
curItem = buffer;
curItemIndex = (curItemIndex - 1);
break; break;
} }
} }