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

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

commit 1ef86cb22b1d5cc3a85a49f5a7106dc174e86d4b
Author: JackieTien97 <[email protected]>
AuthorDate: Sun Oct 29 15:43:15 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