Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Lots of empty region after restore #163

@overvenus

Description

@overvenus

Region size is not updated during BR restore, this is because we forget to set Length of SSTMeta.

br/pkg/restore/util.go

Lines 140 to 149 in 008ec45

return import_sstpb.SSTMeta{
Uuid: id,
CfName: cfName,
Range: &import_sstpb.Range{
Start: rangeStart,
End: rangeEnd,
},
RegionId: region.GetId(),
RegionEpoch: region.GetRegionEpoch(),
}

The Length means the length of the SST file, so TiKV should record it during backup as requested in #95 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions