You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2026/07/16 09:42:16 UTC
(iotdb) branch fix_wal_node_test_stability created (now d0f17786b9d)
This is an automated email from the ASF dual-hosted git repository.
jt2594838 pushed a change to branch fix_wal_node_test_stability
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at d0f17786b9d Fix flaky WALNodeTest WAL roll assertion
This branch includes the following new commits:
new d0f17786b9d Fix flaky WALNodeTest WAL roll assertion
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.
(iotdb) 01/01: Fix flaky WALNodeTest WAL roll assertion
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jt2594838 pushed a commit to branch fix_wal_node_test_stability
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit d0f17786b9d36e34ba19fab829ee98e4af5390ce
Author: Tian Jiang <jt...@163.com>
AuthorDate: Thu Jul 16 17:41:40 2026 +0800
Fix flaky WALNodeTest WAL roll assertion
---
.../iotdb/db/storageengine/dataregion/wal/node/WALNodeTest.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/node/WALNodeTest.java b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/node/WALNodeTest.java
index e3d1efb4edd..f1627611116 100644
--- a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/node/WALNodeTest.java
+++ b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/wal/node/WALNodeTest.java
@@ -366,6 +366,10 @@ public class WALNodeTest {
walNode.onMemTableFlushed(memTable);
walNode.onMemTableCreated(new PrimitiveMemTable(databasePath, dataRegionId), tsFilePath);
Awaitility.await().until(() -> walNode.isAllWALEntriesConsumed());
+ // Wait for the sync task to finish rolling the WAL writer before checking the file names.
+ for (WALFlushListener walFlushListener : walFlushListeners) {
+ assertEquals(WALFlushListener.Status.SUCCESS, walFlushListener.waitForResult());
+ }
// check existence of _0-0-0.wal file and _1-0-1.wal file
assertTrue(
new File(