lidavidm commented on a change in pull request #9387:
URL: https://github.com/apache/arrow/pull/9387#discussion_r568793531



##########
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:
       Moved the fallback path into this method (mimicking GetReadableBuffer).




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to