yujun777 opened a new pull request, #27050: URL: https://github.com/apache/doris/pull/27050
we have met a case a tablet's multiple replicas have the same replica id, but only one of them's backend id is in current backend ids, the other's backends are unavailable. maybe they are stale backend which has be decommissioned. An example: a tablet contains two replicas: replica 1: (replica id = 100, backend id = 1000) , replica 2: (replica id = 100, backend id = 2000). But the system not contains backend 1000 now. Then if this tablet is REDUNDANT, it will pick replica 1 to delete because its backend is not available. Then deleteReplicaInternal will count other replica which replica id is not equals with replica 1, it got 0, then deleteReplicaInternal will fail. ## Proposed changes Issue Number: close #xxx <!--Describe your changes.--> ## Further comments If this is a relatively large or complex change, kick off the discussion at [[email protected]](mailto:[email protected]) by explaining why you chose the solution you did and what alternatives you considered, etc... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
