vgvineet4 commented on a change in pull request #9254: URL: https://github.com/apache/kafka/pull/9254#discussion_r491690401
########## File path: tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java ########## @@ -132,12 +138,16 @@ public static void main(String[] args) throws Exception { transactionStartTime = System.currentTimeMillis(); } - if (payloadFilePath != null) { payload = payloadByteList.get(random.nextInt(payloadByteList.size())); } record = new ProducerRecord<>(topicName, payload); - + Enumeration e = headerProps.propertyNames(); + while (e.hasMoreElements()) { + String key = (String) e.nextElement(); + System.out.println(key + " -- " + headerProps.getProperty(key)); + record.headers().add(key, headerProps.getProperty(key).getBytes("UTF-8")); Review comment: Nice catch!!..changes incorporated. ---------------------------------------------------------------- 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