twthorn commented on code in PR #18146:
URL: https://github.com/apache/kafka/pull/18146#discussion_r1881113174


##########
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractWorkerSourceTask.java:
##########
@@ -396,12 +396,25 @@ boolean sendRecords() {
         for (final SourceRecord preTransformRecord : toSend) {
             ProcessingContext<SourceRecord> context = new 
ProcessingContext<>(preTransformRecord);
             final SourceRecord record = transformationChain.apply(context, 
preTransformRecord);
+            // If the result of a transformation is null, then the record 
should be filtered/skipped & there was no error
+            if (record == null) {

Review Comment:
   Nice catch, updated



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