You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/04/08 12:53:15 UTC

[GitHub] [camel] vgaur commented on a change in pull request #5312: "CAMEL-16414:camel-kafka set custom timestamp"

vgaur commented on a change in pull request #5312:
URL: https://github.com/apache/camel/pull/5312#discussion_r609665811



##########
File path: components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaProducer.java
##########
@@ -223,6 +231,12 @@ public boolean hasNext() {
                             }
                         }
 
+                        if (innerMmessage.getHeader(KafkaConstants.OVERRIDE_TIMESTAMP) != null) {
+                            if (innerMmessage.getHeader(KafkaConstants.OVERRIDE_TIMESTAMP) instanceof Long) {
+                                innerTimestamp = ((Long) overrideTimeStamp).longValue();

Review comment:
       innerMmessage.getHeader(KafkaConstants.OVERRIDE_TIMESTAMP)  will be lost




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org