ChrisSamo632 commented on code in PR #7529:
URL: https://github.com/apache/nifi/pull/7529#discussion_r1334987534


##########
nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/kinesis/stream/PutKinesisStream.java:
##########
@@ -126,72 +127,60 @@ public void onTrigger(final ProcessContext context, final 
ProcessSession session
         final int batchSize = context.getProperty(BATCH_SIZE).asInteger();
         final long maxBufferSizeBytes = 
context.getProperty(MAX_MESSAGE_BUFFER_SIZE_MB).asDataSize(DataUnit.B).longValue();
 
-        List<FlowFile> flowFiles = filterMessagesByMaxSize(session, batchSize, 
maxBufferSizeBytes, AWS_KINESIS_ERROR_MESSAGE);
+        final List<FlowFile> flowFiles = 
KinesisProcessorUtils.filterMessagesByMaxSize(session, batchSize, 
maxBufferSizeBytes, AWS_KINESIS_ERROR_MESSAGE, getLogger());
 
-        HashMap<String, List<FlowFile>> hashFlowFiles = new HashMap<>();
-        HashMap<String, List<PutRecordsRequestEntry>> recordHash = new 
HashMap<String, List<PutRecordsRequestEntry>>();
-
-        final AmazonKinesisClient client = getClient(context);
+        final HashMap<String, List<FlowFile>> hashFlowFiles = new HashMap<>();
+        final HashMap<String, List<PutRecordsRequestEntry>> recordHash = new 
HashMap<>();

Review Comment:
   Missed this one, it's not a big deal to fix if there are no other changes 
though



-- 
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: issues-unsubscr...@nifi.apache.org

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

Reply via email to