Repository navigation
Fix 04603_quota_zero_interval breaking parallel and stress runs - #110954
Merged
Merged
Conversation
The test created a query quota with `TO default`. A quota is a server-global entity, and in stress and parallel runs all stateless tests execute concurrently against the same server as the `default` user, so the quota on `default` was consumed by every concurrent query, exhausted its limit, and made the server reject subsequent queries with `QUOTA_EXCEEDED` — eventually taking the whole server down (`Server is not responding`). The interval is validated at CREATE time in `InterpreterCreateQuotaQuery`, independent of the `TO` assignment, so the quota does not need to be assigned to anyone for the test to exercise the `BAD_ARGUMENTS` rejection. Drop the `TO default` clause so the test no longer touches the shared `default` user; the reference output (`BAD_ARGUMENTS` / `BAD_ARGUMENTS` / `ok`) is unchanged. Surfaced on the `Stress test (amd_msan)` job of #106215 CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106215&sha=0b2a2b671abe9df2dae40253fb8fafacaf699575&name_0=PR&name_1=Stress%20test%20%28amd_msan%29 Caused by: #110846 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [07dc0b2] Summary: ✅ AI ReviewSummaryThis PR removes the Final VerdictStatus: ✅ Approve |
Merged
1 task
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…zero-interval-stress Fix `04603_quota_zero_interval` breaking parallel and stress runs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #110846
Related: #106215
The stateless test
04603_quota_zero_intervalcreated a query quota withTO default. A quota is a server-global entity, and in stress and parallel runs all stateless tests execute concurrently against the same server as thedefaultuser. The quota ondefaultwas therefore consumed by every concurrent query, exhausted its limit (MAX queries = 1000per hour), and made the server reject subsequent queries withQUOTA_EXCEEDED— eventually taking the whole server down (Server is not responding).This surfaced as a
Stress test (amd_msan)failure on PR #106215 after that PR merged the test in frommaster:The interval is validated at CREATE time in
InterpreterCreateQuotaQuery, independent of theTOassignment, so the quota does not need to be assigned to anyone for the test to exercise theBAD_ARGUMENTSrejection. Dropping theTO defaultclause makes the test stop touching the shareddefaultuser, so it is safe under stress and parallel execution. The reference output (BAD_ARGUMENTS/BAD_ARGUMENTS/ok) is unchanged.CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106215&sha=0b2a2b671abe9df2dae40253fb8fafacaf699575&name_0=PR&name_1=Stress%20test%20%28amd_msan%29
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Version info
26.7.1.1178(included in26.7and later)