airborne12 commented on PR #71358: URL: https://github.com/apache/doris/pull/71358#issuecomment-7407164185
1. For the two P2 findings on restoring into an existing table: don't add ID remapping back in BE. Just check secondary `index_id` (and index properties) in FE `RestoreJob` when the target table already exists, and reject the restore if they don't match. 2. After a cross-cluster restore into a new table, `DROP INDEX` followed by `ADD INDEX` still has a corner case where `Env.getNextId()` catches up to an uncleaned upstream `index_id` (unlike `column_unique_id`, secondary indexes don't persist a per-table `maxColUniqueId` watermark). Probability is extremely low, so it's fine to leave as a trade-off in this PR; the proper long-term fix is switching secondary indexes to a persisted per-table monotonic ID as well. 3. Please address the two test findings from the review (`bad` replica race with `TabletScheduler` and verifying compaction actually merged the rowsets), and fill out the PR description / release note for deprecating `restore_reset_index_id`. -- 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]
