[ https://issues.apache.org/jira/browse/THRIFT-5696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Riza Suminto resolved THRIFT-5696. ---------------------------------- Fix Version/s: 0.19.0 Resolution: Fixed The PR has been merged to master branch. > TByteBuffer.java does not allow non-default TConfiguration > ---------------------------------------------------------- > > Key: THRIFT-5696 > URL: https://issues.apache.org/jira/browse/THRIFT-5696 > Project: Thrift > Issue Type: Bug > Components: Java - Library > Affects Versions: 0.16.0, 0.18.1 > Reporter: Riza Suminto > Priority: Major > Fix For: 0.19.0 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > TByteBuffer.java does not allow passing custom TConfiguration into constructor > [https://github.com/apache/thrift/blob/66aac4465926404c2bb0c450e80fac2c2824c04c/lib/java/src/main/java/org/apache/thrift/transport/TByteBuffer.java#L18-L22] > > Default TConfiguration limit message size is 100MB maximum. TByteBuffer will > fail with "MaxMessageSize reached" error for ByteBuffer longer than 100MB. > {code:java} > org.apache.thrift.transport.TTransportException: MaxMessageSize reached > at > org.apache.thrift.transport.TEndpointTransport.resetConsumedMessageSize(TEndpointTransport.java:58) > at > org.apache.thrift.transport.TEndpointTransport.updateKnownMessageSize(TEndpointTransport.java:71) > at org.apache.thrift.transport.TByteBuffer.<init>(TByteBuffer.java:24) > {code} > This is a problem in context of JNI between cpp and java code. -- This message was sent by Atlassian Jira (v8.20.10#820010)