Skip to content

(aoe): implement file manager for segment file management #109

Closed

Description

@XuPeng-SH
  1. Table data is composed of segment files and there needs a manager to manage all files
  2. Every segment file has 2 states:
  • unsorted
  • sorted
  1. A segment file is first created as an unsorted file and then it could be upgraded to a sorted file. The upgrade operation should be atomic
  2. Unsorted segment file is writable while the sorted segment file is readonly
  3. Unsorted segment file is composed of block files
  4. Every block has 3 states:
    • Transient
      When it is mutable, all column data is located in memory. When it is immutable, all column data could be spilled as a file when the memory buffer is not enough.
    • Sorted by block
      After the block is immutable, it could be sorted and flushed as a sorted block file.
    • Sorted by segment
      After all blocks of a segment have been flushed as sorted block files, it could be merge sorted and flush a sorted segment file
  5. When there is no reference to stale block or segment files, they should be closed and destroyed.

Activity

  1. added
    kind/tech-request
    on Jun 13, 2021
  2. added a commit that references this issue on Jun 28, 2022
  3. added a commit that references this issue on Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/tech-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions