vgaur commented on a change in pull request #5312: URL: https://github.com/apache/camel/pull/5312#discussion_r609685918
########## 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: Probably I am getting it wrong but should the innerTimestamp be set with value of innerMmessage.getHeader(KafkaConstants.OVERRIDE_TIMESTAMP) instead of overrideTimeStamp. -- 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: us...@infra.apache.org