markap14 commented on code in PR #6131:
URL: https://github.com/apache/nifi/pull/6131#discussion_r931325919


##########
nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-2-6-processors/src/main/java/org/apache/nifi/processors/kafka/pubsub/ConsumerLease.java:
##########
@@ -593,6 +609,9 @@ private void writeRecordData(final ProcessSession session, 
final List<ConsumerRe
                     try {
                         Record record;
                         while ((record = reader.nextRecord()) != null) {

Review Comment:
   It's possible to have bytes that produce no record. For example, it could be 
JSON and contain `{}` or it could be a CSV message with just a header line and 
no actual data.



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