JackieTien97 commented on code in PR #9188:
URL: https://github.com/apache/iotdb/pull/9188#discussion_r1121514887


##########
node-commons/src/main/java/org/apache/iotdb/commons/utils/ThriftCommonsSerDeUtils.java:
##########
@@ -278,4 +280,13 @@ public static TSchemaNode 
deserializeTSchemaNode(ByteBuffer buffer) {
     }
     return schemaNode;
   }
+
+  private static TByteBuffer generateTByteBuffer(ByteBuffer buffer) throws 
TTransportException {
+    // TByteBuffer uses the default TConfiguration which limits the 
MaxMessageSize
+    // we use ByteBuffer.slice() to update the origin buffer if 
buffer.capacity() >= MaxMessageSize
+    if (buffer.capacity() >= THRIFT_DEFAULT_MAX_MESSAGE_SIZE) {
+      buffer.slice();

Review Comment:
   update the  capacity



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to