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

spricoder pushed a commit to branch object_type
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/object_type by this push:
     new a588d8da5b0 we need to close file before read by using FlushCache
a588d8da5b0 is described below

commit a588d8da5b058dc521a90c44cf14f848c470af46
Author: spricoder <[email protected]>
AuthorDate: Thu Jul 10 15:37:40 2025 +0800

    we need to close file before read by using FlushCache
---
 .../java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java
 
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java
index 34daefb65c3..2d67871e34c 100644
--- 
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java
+++ 
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTiffModelProcessor.java
@@ -70,6 +70,7 @@ public class CompressedTiffModelProcessor extends 
ModelProcessor {
         throw new RuntimeException("Failed to write data to tiff file: " + 
gdal.GetLastErrorMsg());
       }
       band.FlushCache();
+      dataset.FlushCache();
       return VsiGdalNative.vsiGetMemFileBuffer(filePath, true);
     } finally {
       if (dataset != null) {

Reply via email to