tikv/raft-engine

Key value tombstone is lost during rewrite

开放

#141 创建于 2021年11月8日

 (0 条评论) (0 个反应) (0 位负责人)Rust (106 个派生)auto 404
bughelp wanted

仓库指标

星标
 (632 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Bug Report

Description

During Append queue rewrite, key value pairs of targeted Raft groups are scanned out and rewritten to Rewrite queue. After that, data files in Append queue is deleted.

However, in this process, key value tombstones (delete key operation) can't be detected and rewritten. Suppose rewrite is triggered after a Put and before a later Delete, the old key value is stored in Rewrite queue, but the subsequent deletion marker is purged from Append queue. When the engine restarts, the old key value will re-surface.

Right now, TiKV doesn't use kv delete API, so this bug is of minor urgency.

贡献者指南