Skip to content

core/rawdb/freezer: table size is inaccurate if elements were removed from the tail #27483

Closed
@rjl493456442

Description

@rjl493456442

Freezer table can support both tail and head deletion. Tail deletion is a bit special, it
will hide the removed items and keep them in the file. The file will only be dropped if
all elements in this file are hidden. (we call it as lazy-deletion).

However, the reported size doesn't respect the tail deletion. The hidden items are
still counted for overall table size. Although these elements are indeed live in the
file system, but we might need another API to report the size of live elements to
avoid some confusions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions