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 <[email protected]>
Signed-off-by: Lijin Bin <[email protected]>
Signed-off-by: Viraj Jasani <[email protected]>
  • Loading branch information
apurtell and Lijin Bin committed Jun 11, 2022
1 parent b21377f commit 18a1a4b
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 18a1a4b

Please sign in to comment.