Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5696

TByteBuffer.java does not allow non-default TConfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.16.0, 0.18.1
    • 0.19.0
    • Java - Library
    • None

    Description

      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.

      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) 

      This is a problem in context of JNI between cpp and java code.

      Attachments

        Issue Links

          Activity

            People

              rizaon Riza Suminto
              rizaon Riza Suminto
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 10m
                  1h 10m