You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kangping Huang (Jira)" <ji...@apache.org> on 2020/12/29 15:28:00 UTC

[jira] [Created] (ARROW-11066) [Java] Is there a bug in flight AddWritableBuffer

Kangping Huang created ARROW-11066:
--------------------------------------

             Summary: [Java] Is there a bug in flight AddWritableBuffer
                 Key: ARROW-11066
                 URL: https://issues.apache.org/jira/browse/ARROW-11066
             Project: Apache Arrow
          Issue Type: Bug
          Components: FlightRPC, Java
    Affects Versions: 1.0.0
            Reporter: Kangping Huang


[https://github.com/apache/arrow/blob/9bab12f03ac486bb8270f031b83f0a0411766b3e/java/flight/flight-core/src/main/java/org/apache/arrow/flight/grpc/AddWritableBuffer.java#L94]

buf.readBytes(stream, buf.readableBytes());

is this line redundant
In my perf.svg, this will copy the data from buf to OutputStream, which can not realize zero-copy.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)