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 7b55646f51d Add fsync for QuotaInfo
7b55646f51d is described below

commit 7b55646f51dd951198749ff976a7fdd8fbe63f49
Author: Jackie Tien <jackietie...@gmail.com>
AuthorDate: Mon Oct 30 16:11:12 2023 +0800

    Add fsync for QuotaInfo
---
 .../java/org/apache/iotdb/confignode/persistence/quota/QuotaInfo.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/quota/QuotaInfo.java
 
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/quota/QuotaInfo.java
index 645ee942894..1fa0b92ba0c 100644
--- 
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/quota/QuotaInfo.java
+++ 
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/quota/QuotaInfo.java
@@ -160,6 +160,7 @@ public class QuotaInfo implements SnapshotProcessor {
     try (FileOutputStream fileOutputStream = new 
FileOutputStream(snapshotFile)) {
       serializeSpaceQuotaLimit(fileOutputStream);
       serializeThrottleQuotaLimit(fileOutputStream);
+      fileOutputStream.getFD().sync();
     } finally {
       spaceQuotaReadWriteLock.writeLock().unlock();
     }

Reply via email to