Skip to content

[Bug]: there is no user admin reported when altering account #12043

Closed

Description

@DanielZhangQD

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93): nightly-898ac286
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

"error": "Error 20101 (HY000): internal error: there is no user admin", "elapsed": "1.806805ms", "rows": 0, "sql": "alter account `5957e965_9756_44d4_ae8e_65e0601e2078` admin_name 'admin' identified by 'xx';"

Expected Behavior

Alter account successfully.

Steps to Reproduce

NA

Additional information

Two accounts with the same name are created:

MySQL [mo_catalog]> select * from mo_account where account_name = '5957e965_9756_44d4_ae8e_65e0601e2078';
+------------+--------------------------------------+--------+---------------------+----------+-----------+---------------------+
| account_id | account_name                         | status | created_time        | comments | version   | suspended_time      |
+------------+--------------------------------------+--------+---------------------+----------+-----------+---------------------+
|  294603001 | 5957e965_9756_44d4_ae8e_65e0601e2078 | open   | 2023-10-08 06:37:17 |          | 294600005 | 2023-10-08 10:30:59 |
|  294603002 | 5957e965_9756_44d4_ae8e_65e0601e2078 | open   | 2023-10-08 06:37:54 |          | 294600005 | 2023-10-08 10:30:59 |
+------------+--------------------------------------+--------+---------------------+----------+-----------+---------------------+

Activity

  1. added this to the 1.0.0 milestone on Oct 10, 2023
  2. aressu1985 commented on Oct 10, 2023

    @aressu1985
    Contributor

    这个看着就是这个租户没有admin这个user呀,查一下租户下的mo_catalog.mo_user表中是否存在admin这个用户,或者确认一下创建租户的时候,admin_name是不是’admin‘呀

  3. YANGGMM commented on Oct 11, 2023

    @YANGGMM
    Contributor

    can not find log in loki,waitting cn ready

  4. YANGGMM commented on Oct 13, 2023

    @YANGGMM
    Contributor

    pr merge, watching the result

  5. YANGGMM commented on Oct 16, 2023

    @YANGGMM
    Contributor

    waitting

  6. YANGGMM commented on Oct 17, 2023

    @YANGGMM
    Contributor

    still working

  7. DanielZhangQD commented on Oct 18, 2023

    @DanielZhangQD
    ContributorAuthor

    2023-10-10T10:07:59Z 创建 freetier-01 后,所有实例创建迁移到 freetier-01,到现在为止没有出现这个问题,暂时降级为 s0

  8. added
    severity/s0
    and removed on Oct 18, 2023
  9. YANGGMM commented on Oct 23, 2023

    @YANGGMM
    Contributor

    still working

  10. YANGGMM commented on Oct 26, 2023

    @YANGGMM
    Contributor

    still working

  11. YANGGMM commented on Oct 31, 2023

    @YANGGMM
    Contributor

    still working

  12. YANGGMM commented on Nov 6, 2023

    @YANGGMM
    Contributor

    still working

  13. YANGGMM commented on Nov 9, 2023

    @YANGGMM
    Contributor

    still working

  14. YANGGMM commented on Nov 10, 2023

    @YANGGMM
    Contributor

    still working

  15. modified the milestones: 1.0.0, 1.1.0 on Nov 15, 2023
  16. YANGGMM commented on Nov 15, 2023

    @YANGGMM
    Contributor

    still working

  17. DanielZhangQD commented on Nov 20, 2023

    @DanielZhangQD
    ContributorAuthor

    2023-10-10T10:07:59Z 创建 freetier-01 后,所有实例创建迁移到 freetier-01,到现在为止没有出现这个问题,暂时降级为 s0

    从这之后没有复现

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

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions