Skip to content

Some pages for local index in the ColumnFileTiny is not removed when doing MinorCompaction #9946

@JaySon-Huang

Description

@JaySon-Huang

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

3. What did you see instead (Required)

Some pages for local index in the ColumnFileTiny is not removed when doing MinorCompaction

wbs.removed_log.delPage(t_file->getDataPageId());

In MinorCompaction::prepare we use wbs.removed_log.delPage(t_file->getDataPageId()); to remove the ColumnFileTiny. But this will not remove the related LocalIndex page_id with the ColumnFileTiny. We must use t_file->removeData(wbs); to remove the ColumnFileTiny along with its LocalIndex page_ids.

4. What is your TiFlash version? (Required)

nightly, v8.5.0

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