Skip to content

[test] Raise disk write-limit ratio in FlussClusterExtension to avoid test flakiness#3594

Merged
swuferhong merged 1 commit into
apache:mainfrom
xuyangzhong:test_io
Jul 6, 2026
Merged

[test] Raise disk write-limit ratio in FlussClusterExtension to avoid test flakiness#3594
swuferhong merged 1 commit into
apache:mainfrom
xuyangzhong:test_io

Conversation

@xuyangzhong

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3593

The tablet server rejects writes once the data-disk usage exceeds
server.data-disk.write-limit-ratio (default 0.85), and only resumes after
usage drops below ratio - 0.10. FlussClusterExtension inherits this default,
so tests that write data through it fail with disk-write-limited errors on CI
runners or local machines whose disk usage is already above 85%. These failures
are unrelated to the code under test and make the suite flaky and
environment-dependent.

This change makes the shared test cluster ignore disk-usage protection so tests
no longer depend on the host's free disk space.

Brief change log

  • Set server.data-disk.write-limit-ratio to 0.99 in FlussClusterExtension
    so the disk-usage write protection effectively stays out of the way during
    tests, while still guarding against a truly full disk.
  • Fix the import ordering of org.apache.curator.test.TestingServer.

Tests

No new tests. This only adjusts test infrastructure. Existing tests based on
FlussClusterExtension continue to pass and are no longer affected by the host
disk-usage limit.

API and Format

No. This change is limited to test utilities and does not affect any public API
or storage format.

Documentation

No. This is a test-only change and introduces no new feature.

@swuferhong swuferhong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM+1

@swuferhong swuferhong merged commit 27bdac4 into apache:main Jul 6, 2026
17 checks passed
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.

Raise disk write-limit ratio in FlussClusterExtension to avoid test flakiness

2 participants