Skip to content

Fix flaky dynamically_resize_filesystem_cache#93164

Merged
kssenii merged 9 commits intomasterfrom
fix-flaky-test-dynamic-resize
Jan 8, 2026
Merged

Fix flaky dynamically_resize_filesystem_cache#93164
kssenii merged 9 commits intomasterfrom
fix-flaky-test-dynamic-resize

Conversation

@kssenii
Copy link
Copy Markdown
Member

@kssenii kssenii commented Dec 29, 2025

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh Bot commented Dec 29, 2025

Workflow [PR], commit [d614d77]

Summary:

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Dec 29, 2025
config_path=${CLICKHOUSE_CONFIG_DIR}/config.d/storage_conf.xml

new_max_size=$($CLICKHOUSE_CLIENT --query "SELECT divide(max_size, 2) FROM system.filesystem_cache_settings WHERE cache_name = '$disk_name'")
new_max_size=$($CLICKHOUSE_CLIENT --query "SELECT max_size * 0.8 FROM system.filesystem_cache_settings WHERE cache_name = '$disk_name'")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The same cache is reused by other tests, which did not let this test evict enough for the resize, so I reduced the eviction numbers

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since it's already an .sh test, why can't we create a table with a separate cache folder? Similar to how it is done here: #93036

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Just to catch bugs given the concurrent execution with reads, though there is now another test named dynamically_resize_filesystem_cache_3.sh, which checks it, so I'll indeed make a separate cache for dynamically_resize_filesystem_cache_2.sh

@azat azat self-assigned this Jan 5, 2026
@azat azat added the 🍃 green ci 🌿 Fixing flaky tests in CI label Jan 5, 2026
Comment thread tests/config/config.d/logger_trace.xml Outdated
<clickhouse>
<logger>
<level>trace</level>
<level>test</level>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we really want this? AFAIR it is slow even for CI
Also this is logger_trace.xml and there is logger_test.xml

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was temporary, to see why test fails

@kssenii kssenii added this pull request to the merge queue Jan 8, 2026
Merged via the queue into master with commit 81fb6bc Jan 8, 2026
131 checks passed
@kssenii kssenii deleted the fix-flaky-test-dynamic-resize branch January 8, 2026 16:19
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jan 8, 2026
@alexey-milovidov
Copy link
Copy Markdown
Member

@kssenii, it is still flaky.

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

Labels

🍃 green ci 🌿 Fixing flaky tests in CI pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants