Skip to content

Fix flaky WALNode outdated file deletion test#17921

Open
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix-wal-node-delete-outdated-files
Open

Fix flaky WALNode outdated file deletion test#17921
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix-wal-node-delete-outdated-files

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

This PR makes WALNodeTest#testDeleteOutdatedFiles deterministic by explicitly rolling the WAL after flushing the old memtable. The previous test relied on 20000 writes exceeding the WAL size threshold, which can fail when serialized entry size changes. Tests: mvn -pl iotdb-core/datanode spotless:apply; git diff --check; mvn -pl iotdb-core/datanode -am -Dtest=WALNodeTest#testDeleteOutdatedFiles -DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false test (blocked locally by datanode generated ModeAccumulator compile errors before test execution).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant