Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use quota bug #31656

Merged
merged 11 commits into from
Dec 11, 2021
Merged

Fix use quota bug #31656

merged 11 commits into from
Dec 11, 2021

Conversation

sunny19930321
Copy link
Contributor

@sunny19930321 sunny19930321 commented Nov 23, 2021

Changelog category (leave one):

Bug Fix

Changelog entry:
Quota limit was not reached, but the limit was exceeded. This PR fixes #31174

this PR #31337
this change does not solve the problem,need_reset_counters the first time is still false,I think the first time the limit is exceeded, used should be reset to 0 @vitlibar

@vitlibar vitlibar self-assigned this Nov 23, 2021
src/Core/Settings.h Outdated Show resolved Hide resolved
@@ -393,30 +393,45 @@ def test_query_inserts():


def test_consumption_of_show_tables():
assert re.match(
"myQuota\\tdefault\\t.*\\t31556952\\t0\\t1000\\t0\\t.*\\t\\\\N.*",
instance.query("SHOW QUOTA"))
Copy link
Member

@vitlibar vitlibar Dec 10, 2021

Choose a reason for hiding this comment

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

No, SHOW TABLES should use and check quota correctly no matter if SHOW QUOTA was called before SHOW TABLES or not.

Copy link
Member

Choose a reason for hiding this comment

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

Let me help you

Copy link
Member

Choose a reason for hiding this comment

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

This PR along with #32575 must fix the issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tks,the problem has been solved

@vitlibar vitlibar added the can be tested Allows running workflows for external contributors label Dec 10, 2021
@vitlibar
Copy link
Member

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Dec 10, 2021

update

✅ Branch has been successfully updated

robot-clickhouse pushed a commit that referenced this pull request Dec 13, 2021
robot-clickhouse pushed a commit that referenced this pull request Dec 13, 2021
robot-clickhouse pushed a commit that referenced this pull request Dec 13, 2021
robot-clickhouse pushed a commit that referenced this pull request Dec 13, 2021
robot-clickhouse pushed a commit that referenced this pull request Dec 13, 2021
robot-clickhouse pushed a commit that referenced this pull request Dec 13, 2021
alexey-milovidov added a commit that referenced this pull request Dec 14, 2021
vitlibar pushed a commit that referenced this pull request Dec 14, 2021
vitlibar pushed a commit that referenced this pull request Dec 14, 2021
vitlibar pushed a commit that referenced this pull request Dec 14, 2021
vitlibar pushed a commit that referenced this pull request Dec 14, 2021
vitlibar pushed a commit that referenced this pull request Dec 14, 2021
@vitlibar vitlibar added the pr-bugfix Pull request with bugfix, not backported by default label Dec 16, 2021
@Felixoid Felixoid added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be tested Allows running workflows for external contributors pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quota limit was not reached, but the limit was exceeded
4 participants