luoluoyuyu commented on code in PR #15295:
URL: https://github.com/apache/iotdb/pull/15295#discussion_r2062576678


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tablet/PipeRawTabletInsertionEvent.java:
##########
@@ -310,6 +321,7 @@ public boolean mayEventPathsOverlappedWithPattern() {
 
   public void markAsNeedToReport() {
     this.needToReport = true;
+    sourceEvent.decrementAndGetSourceReferenceCount();

Review Comment:
   If two ```Events``` with the same ```SourceEvent``` both call 
```markAsNeedToReport```, or one of them calls 
```sourceEvent.decrementAndGetSourceReferenceCount()```, will unexpected things 
happen, such as duplicate reporting, or failure to report a negative number?



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