Skip to content

Commit 326432e

Browse files
authored
Subscription: decrease reference count for managed parsed tsfile event (#15555)
1 parent 325b414 commit 326432e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/event/batch/SubscriptionPipeTsFileEventBatch.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.apache.iotdb.commons.pipe.event.EnrichedEvent;
2323
import org.apache.iotdb.db.pipe.connector.payload.evolvable.batch.PipeTabletEventTsFileBatch;
2424
import org.apache.iotdb.db.pipe.event.common.tablet.PipeRawTabletInsertionEvent;
25+
import org.apache.iotdb.db.pipe.event.common.tsfile.PipeTsFileInsertionEvent;
2526
import org.apache.iotdb.db.subscription.broker.SubscriptionPrefetchingTsFileQueue;
2627
import org.apache.iotdb.db.subscription.event.SubscriptionEvent;
2728
import org.apache.iotdb.db.subscription.event.pipe.SubscriptionPipeTsFileBatchEvents;
@@ -102,6 +103,7 @@ protected void onTsFileInsertionEvent(final TsFileInsertionEvent event) {
102103
} finally {
103104
try {
104105
event.close();
106+
((PipeTsFileInsertionEvent) event).decreaseReferenceCount(this.getClass().getName(), false);
105107
} catch (final Exception ignored) {
106108
// no exceptions will be thrown
107109
}

0 commit comments

Comments
 (0)