healchow commented on code in PR #6849:
URL: https://github.com/apache/inlong/pull/6849#discussion_r1046590929


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/sink/mq/tube/TubeHandler.java:
##########
@@ -239,12 +240,16 @@ public void onException(Throwable ex) {
     private void sendSimpleProfileV0(SimpleBatchPackProfileV0 event, 
IdTopicConfig idConfig,
             String topic) throws Exception {
         // headers
-        Map<String, String> headers = event.getSimpleProfile().getHeaders();
+        Map<String, String> headers = event.getProperties();
+        if (MapUtils.isEmpty(event.getProperties())) {
+            headers = event.getSimpleProfile().getHeaders();
+        }
         // compress
         byte[] bodyBytes = event.getSimpleProfile().getBody();
         // sendAsync
         Message message = new Message(topic, bodyBytes);
         // add headers
+

Review Comment:
   A strange blank line.



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