thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Shelukhin <ser...@hortonworks.com>
Subject Re: 2 questions; 0.9.3 release, and writing from read-only buffer
Date Wed, 09 Sep 2015 18:11:11 GMT
Anyone? :)

On 15/8/31, 17:12, "Sergey Shelukhin" <sergey@hortonworks.com> wrote:

>1) Is 0.9.3 release planned anytime soon? :)
>
>2) I get this error after setting a binary field in a return object from
>some Thrift API to a read-only buffer:
>server.TThreadPoolServer: Error occurred during processing of message.
>java.nio.ReadOnlyBufferException
>       at java.nio.ByteBuffer.array(ByteBuffer.java:996)
>       at 
>org.apache.thrift.protocol.TCompactProtocol.writeBinary(TCompactProtocol.j
>a
>va:368)
>       at [my generated type]$[blah]StandardScheme.write
>
>Is there a good reason why it cannot send from read-only buffers? It
>doesn┬╣t need to be modified.
>They are read-only by design and I'd prefer to avoid copying them. For
>now, I muck with the readonly flag using reflection when sending, but that
>is a hacky workaround.
>
>
>
>
>

Mime
View raw message