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

[Bug]: New account used about 16GB storage #16419

Closed
1 task done
DanielZhangQD opened this issue May 27, 2024 · 4 comments
Closed
1 task done

[Bug]: New account used about 16GB storage #16419

DanielZhangQD opened this issue May 27, 2024 · 4 comments
Assignees
Labels
kind/bug Something isn't working phase/testing resolved/v1.2.1 severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Milestone

Comments

@DanielZhangQD
Copy link
Contributor

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

1.2-dev

Commit ID

v1.2.0-18f806e26-2024-05-26

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

  • Create a new account in cloud qa env
  • Check the storage size of this account with show accounts and it shows about 16GB used

Expected Behavior

It shows about 13 KB in previous commits.

Steps to Reproduce

See detail in Actual Behavior

Additional information

https://github.com/matrixorigin/MO-Cloud/issues/3340

@DanielZhangQD DanielZhangQD added kind/bug Something isn't working needs-triage severity/s0 Extreme impact: Cause the application to break down and seriously affect the use labels May 27, 2024
@DanielZhangQD DanielZhangQD added this to the 1.2.1 milestone May 27, 2024
@DanielZhangQD
Copy link
Contributor Author

The behavior is introduced in #16286

@DanielZhangQD
Copy link
Contributor Author

DanielZhangQD commented May 28, 2024

结论:
普通租户只能看到他自己表的行数和大小,如果很难统计,就显示为 0。

  1. 普通租户 show accounts,不考虑 mo_database,mo_columns,mo_tables,和 cluster 表的大小(因为目前无法区分这些表里面的数据)
  2. mo_table_size 同理
  3. 确认一下 mo_table_rows 是否已经区分不同 account
  4. 普通租户不为集群表付费,统计存储的时候不需要考虑,统计表行数的时候,看到自己租户的行数

@gouhongshen
Copy link
Contributor

现在 show accounts, tn 那边无法区分这些特殊表中哪些数据来自哪些account,为了和保持一致,mo_table_size, mo_table_rows, 和 show accounts 对这些特殊 的表都暂不统计,直接返回0,以后有需求在修改。

@heni02
Copy link
Contributor

heni02 commented Jun 6, 2024

confirm,closed
main:52b7c7b2a6806b3d24761e03fa23d83753c5f370
企业微信截图_d900a3c7-6170-44a5-9229-c4a45d09af70

1.2-dev main:c031f9191f492a00e587159f5167672cd218c157
企业微信截图_941498fb-15ed-4421-b2d0-e38892cbcd6f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working phase/testing resolved/v1.2.1 severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Projects
None yet
Development

No branches or pull requests

6 participants