You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2023/03/16 11:11:52 UTC
[iotdb] branch master updated: [IOTDB-5671] Fix inode cannot be released after deletion causing waste of disk space
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 8c4f80046b [IOTDB-5671] Fix inode cannot be released after deletion causing waste of disk space
8c4f80046b is described below
commit 8c4f80046bf07638280d84d68264d00b4a431521
Author: Liu Xuxin <37...@users.noreply.github.com>
AuthorDate: Thu Mar 16 19:11:45 2023 +0800
[IOTDB-5671] Fix inode cannot be released after deletion causing waste of disk space
---
.../utils/executor/readchunk/AlignedSeriesCompactionExecutor.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/compaction/execute/utils/executor/readchunk/AlignedSeriesCompactionExecutor.java b/server/src/main/java/org/apache/iotdb/db/engine/compaction/execute/utils/executor/readchunk/AlignedSeriesCompactionExecutor.java
index 9e292a45af..2ec407ad29 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/compaction/execute/utils/executor/readchunk/AlignedSeriesCompactionExecutor.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/compaction/execute/utils/executor/readchunk/AlignedSeriesCompactionExecutor.java
@@ -20,7 +20,6 @@ package org.apache.iotdb.db.engine.compaction.execute.utils.executor.readchunk;
import org.apache.iotdb.db.conf.IoTDBDescriptor;
import org.apache.iotdb.db.engine.TsFileMetricManager;
-import org.apache.iotdb.db.engine.cache.ChunkCache;
import org.apache.iotdb.db.engine.compaction.execute.task.CompactionTaskSummary;
import org.apache.iotdb.db.engine.compaction.schedule.CompactionTaskManager;
import org.apache.iotdb.db.engine.compaction.schedule.constant.CompactionType;
@@ -115,7 +114,7 @@ public class AlignedSeriesCompactionExecutor {
continue;
}
measurementSet.add(chunkMetadata.getMeasurementUid());
- Chunk chunk = ChunkCache.getInstance().get((ChunkMetadata) chunkMetadata);
+ Chunk chunk = reader.readMemChunk((ChunkMetadata) chunkMetadata);
ChunkHeader header = chunk.getHeader();
schemaSet.add(
new MeasurementSchema(