Skip to content

[To dev/1.3] Fix flaky concurrent queue and WAL tests (#18246)#18255

Merged
jt2594838 merged 1 commit into
apache:dev/1.3from
Caideyipi:backport-18246-dev-1.3
Jul 21, 2026
Merged

[To dev/1.3] Fix flaky concurrent queue and WAL tests (#18246)#18255
jt2594838 merged 1 commit into
apache:dev/1.3from
Caideyipi:backport-18246-dev-1.3

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

Backport

Backport 8e5e850 (#18246) to dev/1.3.

Changes

  • Replace unbounded polling threads and fixed sleeps in concurrency tests with bounded executor tasks and latches.
  • Propagate worker failures through futures and shut down local executors in finally blocks.
  • Replace preemptive WAL test timeouts with bounded future waits that allow worker cleanup.
  • Adapt the WAL writes to the API used by dev/1.3.

Tests

  • mvn spotless:apply -pl iotdb-core/datanode,iotdb-core/node-commons
  • mvn -Ddevelocity.off=true test -pl iotdb-core/node-commons -Dtest=ConcurrentIterableLinkedQueueTest (24 tests passed)
  • mvn -Ddevelocity.off=true test -pl iotdb-core/datanode -Dtest=WALNodeWaitForRollFileTest (6 tests passed)

This PR has:

  • been self-reviewed.
  • added or modified unit tests to cover the changed path.

@jt2594838
jt2594838 merged commit 6c0cd46 into apache:dev/1.3 Jul 21, 2026
16 checks passed
@jt2594838
jt2594838 deleted the backport-18246-dev-1.3 branch July 21, 2026 01:56
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.

2 participants