pocozh commented on code in PR #3545:
URL: https://github.com/apache/incubator-inlong/pull/3545#discussion_r843439032


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/source/ServerMessageHandler.java:
##########
@@ -742,6 +730,26 @@ public void exceptionCaught(ChannelHandlerContext ctx, 
Throwable cause) throws E
         ctx.close();
     }
 
+    /**
+     * get topic
+     */
+    private String getTopic(String groupId, String streamId) {

Review Comment:
   why add this method? It isn't used



##########
inlong-audit/audit-sdk/src/main/java/org/apache/inlong/audit/send/SenderManager.java:
##########
@@ -153,7 +150,12 @@ public void send(long sdkTime, AuditApi.BaseCommand 
baseCommand) {
      * @param data
      */
     private void sendData(byte[] data) {
-        ChannelBuffer dataBuf = ChannelBuffers.wrappedBuffer(data);
+        if (data == null || data.length < 0) {

Review Comment:
   why not consider data.length=0?



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