Github user ijokarumawak commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1891#discussion_r124994470
  
    --- Diff: 
nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-0-10-processors/src/main/java/org/apache/nifi/processors/kafka/pubsub/ConsumerLease.java
 ---
    @@ -418,82 +419,106 @@ private void writeDemarcatedData(final 
ProcessSession session, final List<Consum
         }
     
     
    -    private void writeRecordData(final ProcessSession session, final 
List<ConsumerRecord<byte[], byte[]>> records, final TopicPartition 
topicPartition) {
    +    private void writeRecordData(final ProcessSession session, final 
List<ConsumerRecord<byte[], byte[]>> messages, final TopicPartition 
topicPartition) {
             // In order to obtain a RecordReader from the RecordReaderFactory, 
we need to give it a FlowFile.
             // We don't want to create a new FlowFile for each record that we 
receive, so we will just create
             // a "temporary flowfile" that will be removed in the finally 
block below and use that to pass to
             // the createRecordReader method.
             final FlowFile tempFlowFile = session.create();
             RecordSetWriter writer = null;
     
    +        final BiConsumer<ConsumerRecord<byte[], byte[]>, Exception> 
handleParseFailure = (consumerRecord, e) -> {
    --- End diff --
    
    I reviewed and merged #1906 . I will update this PR again.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to