Skip to content

[Bug] replayEraseTable throw NullPointException when starting PaloFe #9265

@pengxiangyu

Description

@pengxiangyu

Search before asking

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

Version

0.15.1-rc9

What's Wrong?

in org.apache.doris.catalog.CatalogRecycleBin
function: replayEraseTable(long tableId)
public synchronized void replayEraseTable(long tableId) {
RecycleTableInfo tableInfo = idToTable.remove(tableId);
idToRecycleTime.remove(tableId);
Table table = tableInfo.getTable();
...
it is called when PaloFe start. When tableId is not in idToTable, tableInfo will be null, tableInfo.getTable(); throw an NullPointException, PaloFe will start failed.

What You Expected?

just ignore it, don't let PaloFe start failed.

How to Reproduce?

Maybe table is dropped, but OP_ERASE_TABLE still exist.

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