Skip to content

[Bug] FE start failed at replaying drop user edit log #11235

@morningman

Description

@morningman

Search before asking

  • I had searched in the issues and found no similar issues.

Version

all version

What's Wrong?

2022-07-27 09:52:00,054 ERROR (stateListener|83) [EditLog.loadJournal():894] Operation Type 63
org.apache.doris.common.DdlException: errCode = 2, detailMessage = User `default_cluster:cmy`@`%` does not exist.
        at org.apache.doris.mysql.privilege.PaloAuth.dropUserInternal(PaloAuth.java:794) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.mysql.privilege.PaloAuth.replayDropUser(PaloAuth.java:774) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.persist.EditLog.loadJournal(EditLog.java:423) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.catalog.Env.replayJournal(Env.java:2433) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.catalog.Env.transferToMaster(Env.java:1246) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.catalog.Env.access$1200(Env.java:269) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.catalog.Env$4.runOneCycle(Env.java:2349) ~[doris-fe.jar:1.0-SNAPSHOT]
        at org.apache.doris.common.util.Daemon.run(Daemon.java:116) ~[doris-fe.jar:1.0-SNAPSHOT]

What You Expected?

no error

How to Reproduce?

create role test_role;
grant USAGE_PRIV on db.* to ROLE test_role;
create user test identified by "123" default role "test_role";
drop user test;

And then restart FE.

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions