You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/09/02 11:28:19 UTC

[incubator-iotdb] branch real_fix_wal created (now 1e48707)

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

qiaojialin pushed a change to branch real_fix_wal
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at 1e48707  fix scheduleWithFixedDelay in wal

This branch includes the following new commits:

     new 1e48707  fix scheduleWithFixedDelay in wal

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-iotdb] 01/01: fix scheduleWithFixedDelay in wal

Posted by qi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch real_fix_wal
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 1e48707a7cf42753e799b99e641b28cd5f601edd
Author: qiaojialin <64...@qq.com>
AuthorDate: Wed Sep 2 19:27:57 2020 +0800

    fix scheduleWithFixedDelay in wal
---
 .../org/apache/iotdb/db/writelog/manager/MultiFileLogNodeManager.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/writelog/manager/MultiFileLogNodeManager.java b/server/src/main/java/org/apache/iotdb/db/writelog/manager/MultiFileLogNodeManager.java
index 40e8fd9..5671b15 100644
--- a/server/src/main/java/org/apache/iotdb/db/writelog/manager/MultiFileLogNodeManager.java
+++ b/server/src/main/java/org/apache/iotdb/db/writelog/manager/MultiFileLogNodeManager.java
@@ -117,7 +117,7 @@ public class MultiFileLogNodeManager implements WriteLogNodeManager, IService {
       }
       if (config.getForceWalPeriodInMs() > 0) {
         executorService = Executors.newSingleThreadScheduledExecutor();
-        executorService.scheduleAtFixedRate(this::forceTask, config.getForceWalPeriodInMs(),
+        executorService.scheduleWithFixedDelay(this::forceTask, config.getForceWalPeriodInMs(),
             config.getForceWalPeriodInMs(), TimeUnit.MILLISECONDS);
       }
     } catch (Exception e) {