You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jackey Lee (Jira)" <ji...@apache.org> on 2021/01/08 02:40:00 UTC

[jira] [Created] (ARROW-11177) [Java] ArrowMessage failed to parse compressed grpc stream

Jackey Lee created ARROW-11177:
----------------------------------

             Summary: [Java] ArrowMessage failed to parse compressed grpc stream
                 Key: ARROW-11177
                 URL: https://issues.apache.org/jira/browse/ARROW-11177
             Project: Apache Arrow
          Issue Type: Bug
          Components: Java
    Affects Versions: 2.0.1, 3.0.0
            Reporter: Jackey Lee


InvalidProtocolBufferException will be thrown in ArrowMessage.frame if we use gzip compress in Grpc.

The reason is stream.available will still be 1 after we read compressed data. There should be another attempt read to change InflaterInputStream.reachEOF to be true, and make stream.available to be 0.

Thus we need check stream.available after read tag from stream.



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