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 2022/08/20 02:37:09 UTC

[iotdb] 01/01: [To rel/0.13] [IOTDB-4194] Fix IOException happened in Compaction

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch IOTDB-4194-013
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 0c040b85b2ade13b9b8744351dc8b0cba03e7a42
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Sat Aug 20 10:36:51 2022 +0800

    [To rel/0.13] [IOTDB-4194] Fix IOException happened in Compaction
---
 .../java/org/apache/iotdb/db/engine/compaction/CompactionUtils.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionUtils.java b/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionUtils.java
index e689ccadfe..e86bb5916e 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionUtils.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionUtils.java
@@ -316,7 +316,7 @@ public class CompactionUtils {
       TsFileResource resource, TsFileSequenceReader reader, String device, String measurement)
       throws IllegalPathException, IOException {
     List<ChunkMetadata> chunkMetadata =
-        reader.getChunkMetadataList(new PartialPath(device, measurement));
+        reader.getChunkMetadataList(new PartialPath(device, measurement), true);
     if (chunkMetadata.size() > 0) {
       chunkMetadata.get(0).setFilePath(resource.getTsFilePath());
       Chunk chunk = ChunkCache.getInstance().get(chunkMetadata.get(0));