csun5285 commented on issue #71271: URL: https://github.com/apache/doris/issues/71271#issuecomment-7373293861
Thanks for the report! **Cause & Fix:** `_rename_index_ids` was introduced in #57074 for an obsolete `restore_reset_index_id` config, which erroneously overwrote same-column secondary index IDs during clone onto an existing local tablet. Since secondary index IDs are table-scoped and embedded in `.idx` files/headers, snapshot/clone should never rewrite them. Fixed in https://github.com/apache/doris/pull/71358 (will be cherry-picked to `branch-4.1`). **How to recover:** Only the cloned rowset metadata on that replica is corrupted (`.dat` and `.idx` files are intact). - **On 4.1.5 (before upgrading):** drop the broken replica first so it re-clones from scratch as a new tablet (full clone when local tablet does not exist skips `_rename_index_ids`), e.g. set `ADMIN SET REPLICA STATUS PROPERTIES("tablet_id" = "<tid>", "backend_id" = "<broken_be_id>", "status" = "bad");` (or temporarily change `replication_num` `3 -> 2 -> 3` to ensure the local tablet is removed first). Note that future incremental clones can still hit this until upgraded. - **After upgrading to the fix (#71358):** simply mark the broken replica `bad` to re-clone cleanly, and future incremental clones will work properly. -- 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]
