This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch rc/1.3.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rc/1.3.3 by this push:
new 75eb084cd3f fix compaction logger no such file or directory (#13780)
75eb084cd3f is described below
commit 75eb084cd3fb0378c1885ca9ac3b53d236d2f00d
Author: shuwenwei <[email protected]>
AuthorDate: Wed Oct 16 10:16:59 2024 +0800
fix compaction logger no such file or directory (#13780)
---
.../dataregion/compaction/execute/utils/log/CompactionLogger.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/log/CompactionLogger.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/log/CompactionLogger.java
index 319f8c2ea1c..dcb7fbfeb40 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/log/CompactionLogger.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/log/CompactionLogger.java
@@ -41,6 +41,9 @@ public class CompactionLogger implements AutoCloseable {
private FileOutputStream logStream;
public CompactionLogger(File logFile) throws IOException {
+ if (!logFile.getParentFile().exists()) {
+ logFile.getParentFile().mkdirs();
+ }
logStream = new FileOutputStream(logFile, true);
}