HTHou commented on code in PR #17612:
URL: https://github.com/apache/iotdb/pull/17612#discussion_r3198654054


##########
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java:
##########
@@ -224,15 +224,16 @@ private enum FrameError {
             + "requests%s to the Non-SSL Thrift-RPC port, please confirm that 
you are using "
             + "the right configuration"),
     NEGATIVE_FRAME_SIZE("Read a negative frame size (%d)%s!"),
-    FRAME_SIZE_EXCEEDED("Frame size (%d) larger than protect max size 
(%d)%s!");
+    FRAME_SIZE_EXCEEDED("Frame size (%d) larger than protect max size 
(%d)%s!"),
+    STRING_LENGTH_EXCEEDED("String length (%d) larger than protect max size 
(%d)%s!");
 
     private final String messageFormat;
 
     FrameError(String messageFormat) {
       this.messageFormat = messageFormat;
     }
 
-    void throwException(int size, String remoteInfo, int maxSize) throws 
TTransportException {
+    void throwException(long size, String remoteInfo, int maxSize) throws 
TTransportException {
       String message =
           (this == FRAME_SIZE_EXCEEDED)

Review Comment:
   this == FRAME_SIZE_EXCEEDED || this == STRING_LENGTH_EXCEEDED



-- 
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