Skip to content

[RaftLogEngine] Make log recycling effective when starting in cold by prefill-for-recycle. #14371

Description

@LykxSassinator

Development Task

In previous work, we've already introduced enable-log-recycle for reusing the obsolete raft logs for newly append entries. But this feature is not effective when starting with an empty db, only making sense when the count of logs up to threshold.

So, we want to introduce a new trigger, named with prefill-for-recycle, to enable this feature in advance when starting TiKV with an empty db, which has been done in tikv/raft-engine#278.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions