emkornfield commented on a change in pull request #9354:
URL: https://github.com/apache/arrow/pull/9354#discussion_r567373267
##########
File path:
java/flight/flight-core/src/main/java/org/apache/arrow/flight/grpc/AddWritableBuffer.java
##########
@@ -88,11 +87,8 @@
* @param buf The buffer to add.
* @param stream The Candidate OutputStream to add to.
* @return True if added. False if not possible.
- * @throws IOException on error
*/
- public static boolean add(ByteBuf buf, OutputStream stream) throws
IOException {
- buf.readBytes(stream, buf.readableBytes());
Review comment:
while I'm trying to parse the code, its not clear to me why this didn't
end up doing a double send? (it is markers in the buf already indicate it is
drained?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]