Skip to content

[Bug] failed to initialize storage reader. tablet=924991.xxxx, res=-214, backend=xxxx #9267

@morningman

Description

@morningman

Search before asking

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

Version

1.0.0

What's Wrong?

the -214 error code means "some version of this replica is missing".
In #8209, I modified some logic to handle -214, but one logic is wrong, that is:

  1. When BE report that one tablet is missing version, the FE will set replica's last failed version to 1:

https://github.com/apache/incubator-doris/blob/26bc462e1c46dd751de15d3b477d59015a948476/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java#L829-L837

But this is wrong, because the replica's last failed version should always larger than replica's version, otherwise,
it will be rectified when calling updateReplicaInfo():

https://github.com/apache/incubator-doris/blob/26bc462e1c46dd751de15d3b477d59015a948476/fe/fe-core/src/main/java/org/apache/doris/catalog/Replica.java#L348-L357

What You Expected?

the tablet report logic is valid.

How to Reproduce?

No response

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