Skip to content

Commit 2ef58ab

Browse files
apurtellLijin Bin
andcommitted
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>
1 parent adea9bd commit 2ef58ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hbase-common/src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,9 @@ private int internalRead(ReadableByteChannel channel, long offset, ChannelReader
11481148
offset += len;
11491149
}
11501150
if (buffer.hasRemaining()) {
1151+
// reset
1152+
curItem = buffer;
1153+
curItemIndex = (curItemIndex - 1);
11511154
break;
11521155
}
11531156
}

0 commit comments

Comments
 (0)