vernedeng commented on code in PR #4064:
URL: https://github.com/apache/incubator-inlong/pull/4064#discussion_r865524735
##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/source/tcp/InlongTcpChannelHandler.java:
##########
@@ -137,7 +140,65 @@ private void decodeVersion1(ChannelHandlerContext ctx,
ByteBuf cb, int bodyLengt
}
// uncompress
List<ProxyEvent> events = EventUtils.decodeSdkPack(packObject);
- // topic
+ // response success if event size is zero
+ if (events.size() == 0) {
+ this.responsePackage(ctx, ResultCode.SUCCUSS, packObject);
+ }
+ // process
+ if (!CommonPropertiesHolder.isResponseAfterSave()) {
+ this.processAndResponse(ctx, packObject, events);
+ } else {
+ this.processAndWaitingSave(ctx, packObject, events);
+ }
+ }
+
+ /**
+ * processAndResponse
Review Comment:
comment unmatch function name
--
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]