Skip to content

Commit

Permalink
HBASE-27097 SimpleRpcServer is broken (#4521)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
apurtell and Lijin Bin authored Jun 11, 2022
1 parent 9c846f4 commit 3e98869
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,9 @@ private int internalRead(ReadableByteChannel channel, long offset, ChannelReader
offset += len;
}
if (buffer.hasRemaining()) {
// reset
curItem = buffer;
curItemIndex = (curItemIndex - 1);
break;
}
}
Expand Down

0 comments on commit 3e98869

Please sign in to comment.