Skip to content

[Optimizate] offsetMap incremental build #5241

@kaori-seasons

Description

@kaori-seasons

When the current RIP-30 does compaction, it needs to build an offsetMap. Currently, it needs to scan all message constructions, but in fact, it only needs to scan the last end point to the latest compaction position.

  1. It is necessary to set a certain threshold for the storage of offset in memory, and build a secondary index after arrival

  2. At this time, base on CopyAndWriteList, if there is a request to read the offset, it will be refreshed according to the secondary index

FEATURE REQUEST

  1. Please describe the feature you are requesting.

  2. Provide any additional detail on your proposed use case for this feature.

  3. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

  4. If there are some sub-tasks involved, use -[] for each sub-task and create a corresponding issue to map to the sub-task:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions