Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11066

[Java] Is there a bug in flight AddWritableBuffer

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            lidavidm David Li
            kangpinghuang Kangping Huang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 9h 50m
                9h 50m