FrommyMind commented on code in PR #9052:
URL: https://github.com/apache/seatunnel/pull/9052#discussion_r2030801126
##########
seatunnel-connectors-v2/connector-cdc/connector-cdc-base/src/main/java/org/apache/seatunnel/connectors/cdc/base/source/reader/IncrementalSourceRecordEmitter.java:
##########
@@ -98,9 +98,11 @@ public void emitRecord(
final Iterator<SourceRecord> elementIterator =
sourceRecords.iterator();
while (elementIterator.hasNext()) {
SourceRecord next = elementIterator.next();
- reportMetrics(next);
- processElement(next, collector, splitState);
- markEnterPureIncrementPhase(next, splitState);
+ if (next.value() != null) {
+ reportMetrics(next);
+ processElement(next, collector, splitState);
+ markEnterPureIncrementPhase(next, splitState);
+ }
Review Comment:
I found that, the `next` is not null ,but `next.value()` maybe null when
write data to kafka, so I change this.
--
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]