Skip to content

[Subtask]: Improve the implementation of the current deletes persistence #10527

Closed

Description

@XuPeng-SH

Parent Issue

#10208

Detail of Subtask

Improve the implementation of the current deletes persistence

Describe implementation you've considered

The current solution has some glaring problems that we must correct:

  1. We flush the deletes group by block, which may introduce many small IO
  2. We flush the block deletes one by one, which introduces many objects
  3. We always soft delete the block when flushing the deletes of a block

Additional information

No response

Activity

  1. added
    priority/p0
    on Jul 9, 2023
  2. added this to the 1.0.0 milestone on Jul 9, 2023
  3. aptend commented on Jul 28, 2023

    @aptend
    Contributor

    目前 flush 部分已完成,搭配一个粗糙的 merge 策略,本地 mac 上多次 tpcc(1 warehouse 5 terminala for 5 minutes) 的 blk 选择率稳定在 15% 左右,main 则会缓慢上升到 40+%

    暂未完成:

    • 延迟刷 deletes,被软删后的 blk 的 deletes 依然得到刷盘
    • 一些 corner case 的处理,比如和 apply deletes 的并发
    • 更多的测试:大数据量,更多负载
  4. aptend commented on Aug 1, 2023

    @aptend
    Contributor

    目前进展:

    • 完成延迟刷 deletes 特性
    • 修复 bvt 和 ut 测试若干
    • 可以完成一轮常规 ci-test eks 测试

    现有问题:

    • 尽管 blk 选择率可以维持在较低水平,相比 main 更低,但是 tpcc (10 warehouse & 100 terminals) 性能下降 10% 左右,目前原因未知。
    • commit s3 文件单测未通过,正在定位原因
  5. aptend commented on Aug 3, 2023

    @aptend
    Contributor

    目前进展:

    • 增加了兼容性代码
    • commit s3 问题已解决
    • 修复了更多的重启、不稳定复现的 ut bug,目前正在个人仓库的上进行ci验证

    现有问题:

  6. aptend commented on Aug 7, 2023

    @aptend
    Contributor

    目前进展:

    • duplicate 错误已修复

    现有问题:

    • ut 中 checkpoint 有概率中止导致等待超时
    • 性能问题还需要参数调整和验证
  7. added a commit that references this issue on Aug 23, 2023
  8. added a commit that references this issue on Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/subtaskpriority/p0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions