SteveYurongSu commented on code in PR #12994:
URL: https://github.com/apache/iotdb/pull/12994#discussion_r1686797448
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/task/connection/PipeEventCollector.java:
##########
@@ -132,14 +127,20 @@ private void parseAndCollectEvent(final
PipeTsFileInsertionEvent sourceEvent) th
try {
for (final TabletInsertionEvent parsedEvent :
sourceEvent.toTabletInsertionEvents()) {
- hasNoGeneratedEvent = false;
- collectEvent(parsedEvent);
+ collectParsedRawTableEvent((PipeRawTabletInsertionEvent) parsedEvent);
}
} finally {
sourceEvent.close();
}
}
+ private void collectParsedRawTableEvent(final PipeRawTabletInsertionEvent
parsedEvent) {
+ if (!parsedEvent.hasNoNeedParsingAndIsEmpty()) {
+ hasNoGeneratedEvent = false;
+ collectEvent(parsedEvent);
Review Comment:
Is there anything to do with the receiver? I think it's better to add some
defending logic to prevent NPE...
--
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]