dzr171712 opened a new pull request, #66878:
URL: https://github.com/apache/doris/pull/66878

   ### What problem does this PR solve?
   
   Issue Number: CIR-27660
   
   Problem Summary:
   
   When finishing a schema change job, the new tablet stats are recalculated 
from
   the schema change output rowsets. During this process, the tablet's
   `last_active_cluster_id` and `last_active_time_ms` may be lost.
   
   In addition, the old tablet index information may be incomplete in the finish
   job request, which prevents the meta service from locating the old tablet 
stats
   as a fallback.
   
   ### What changes are included?
   
   - Resolve the complete old tablet index when the finish request does not
     contain `table_id`, `index_id`, or `partition_id`.
   - Support both normal metadata reads and versioned reads through
     `CloneChainReader`.
   - Preserve `last_active_cluster_id` and `last_active_time_ms` when updating
     schema change tablet stats.
   - Reuse active cluster metadata from the following sources in order:
     - Existing new tablet stats for versioned reads.
     - Old tablet stats.
     - Old tablet compact stats for versioned reads.
   - Add error handling for malformed stats and metadata read failures.
   - Add coverage for both versioned-read and normal schema change flows.
   
   ### Test Plan
   
   - Add schema change tests to verify that `last_active_cluster_id` and
     `last_active_time_ms` are preserved on the new tablet.
   - Cover both versioned and non-versioned schema change jobs.


-- 
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]

Reply via email to