This is an automated email from the ASF dual-hosted git repository.
jiangtian 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 de8241b47a5 fix compaction logger no such file or directory (#13779)
de8241b47a5 is described below
commit de8241b47a5825b31490d2357cf90a5fcb7d2ddf
Author: shuwenwei <[email protected]>
AuthorDate: Wed Oct 16 11:29:00 2024 +0800
fix compaction logger no such file or directory (#13779)
---
.../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);
}