Skip to content

Implement the toolkit for managing Migrations. #55661

@YuJuncen

Description

@YuJuncen

Enhancement

We have designed the migration system for compacting log backup. Generally, every modifications over the "stabilized" storage must be done by appending a "migration".

     +-Modifications over those files                 
     | Must be done by Appending a migration.         
     |                                                
+----|--------------+-------------+                   
| stabilized        | Appending   |                   
|-------------------|-------------+                   
|                    \                                
 \                   |                                
 |Truncated TS        \Resolved TS                    

Migrations are idempotent batch modifications (adding a compaction, delete a file, etc..) to the backup files.
You may check the protocol buffer message Migration for more details.
Idempontence is important for migrations, as they may be executed multi times due to retry or racing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions