gosonzhang commented on code in PR #11119: URL: https://github.com/apache/inlong/pull/11119#discussion_r1766087519
########## inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/DefaultMessageSender.java: ########## @@ -218,6 +226,9 @@ public SendResult sendMessage(byte[] body, String groupId, String streamId, long */ public SendResult sendMessage(byte[] body, String groupId, String streamId, long dt, String msgUUID, long timeout, TimeUnit timeUnit, boolean isProxySend) { + if (enableDataTruncation) { + body = truncateData(body); Review Comment: If a truncation is made, how can we ensure that the transmitted data is the user-reported data? -- 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: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org