SteveYurongSu commented on code in PR #12315:
URL: https://github.com/apache/iotdb/pull/12315#discussion_r1559395643


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/payload/evolvable/builder/PipeTransferBatchReqBuilder.java:
##########
@@ -209,5 +214,11 @@ public synchronized void close() {
       }
     }
     allocatedMemoryBlock.close();
+
+    isClosed.set(true);
+  }

Review Comment:
   ```suggestion
     @Override
     public synchronized void close() {
       // Always set isClosed to true first to avoid ..
       isClosed.set(true);
   
       for (final Event event : events) {
         if (event instanceof EnrichedEvent) {
           ((EnrichedEvent) 
event).clearReferenceCount(this.getClass().getName());
         }
       }
       allocatedMemoryBlock.close();
     }```



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