This is an automated email from the ASF dual-hosted git repository.
rong pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/dev/1.3 by this push:
new 04da42bfc7b Subscription: decrease reference count for managed parsed
tsfile event (#15555) (#15558)
04da42bfc7b is described below
commit 04da42bfc7b5c933508a47cf84073c4d6ea8e72d
Author: VGalaxies <[email protected]>
AuthorDate: Thu May 22 10:53:42 2025 +0800
Subscription: decrease reference count for managed parsed tsfile event
(#15555) (#15558)
---
.../db/subscription/event/batch/SubscriptionPipeTsFileEventBatch.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/event/batch/SubscriptionPipeTsFileEventBatch.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/event/batch/SubscriptionPipeTsFileEventBatch.java
index dae3655ca7a..b4782507e47 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/event/batch/SubscriptionPipeTsFileEventBatch.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/event/batch/SubscriptionPipeTsFileEventBatch.java
@@ -22,6 +22,7 @@ package org.apache.iotdb.db.subscription.event.batch;
import org.apache.iotdb.commons.pipe.event.EnrichedEvent;
import
org.apache.iotdb.db.pipe.connector.payload.evolvable.batch.PipeTabletEventTsFileBatch;
import
org.apache.iotdb.db.pipe.event.common.tablet.PipeRawTabletInsertionEvent;
+import org.apache.iotdb.db.pipe.event.common.tsfile.PipeTsFileInsertionEvent;
import
org.apache.iotdb.db.subscription.broker.SubscriptionPrefetchingTsFileQueue;
import org.apache.iotdb.db.subscription.event.SubscriptionEvent;
import
org.apache.iotdb.db.subscription.event.pipe.SubscriptionPipeTsFileBatchEvents;
@@ -101,6 +102,7 @@ public class SubscriptionPipeTsFileEventBatch extends
SubscriptionPipeEventBatch
} finally {
try {
event.close();
+ ((PipeTsFileInsertionEvent)
event).decreaseReferenceCount(this.getClass().getName(), false);
} catch (final Exception ignored) {
// no exceptions will be thrown
}