arana-db / arana-db/kiwi-cpp

Rename 后会丢失原表的元素

Open
#32 5 comments 0 reactions 1 assignee Assigned to @Risc-lt View on GitHub
Dominant language
C++
Stars
49
Forks
8
PR merge metrics
No merged PRs in 30d

Description

### Is this a regression?

None

### Description

### Is this a regression?

Yes

### Description

![Screenshot 2024-08-18 001901](https://github.com/user-attachments/assets/8798f652-a850-4608-8304-c9c2f15554d4)

rename 过程中只是单纯的把原表的metadata发给新表,没有把原表的元素也发转给新表
![Screenshot 2024-08-24 120011](https://github.com/user-attachments/assets/fe4a15e8-41e6-462c-aa6e-48eb9600956b)
![Screenshot 2024-08-24 120111](https://github.com/user-attachments/assets/54c130d4-3b6f-4b5a-9d68-487a76d424ad)

元素放到rocksdb的时候那个key是包含表名的,不只是metavalue的东西,但rename之后没有改变这个原有的表名,用新表名也凑不出这个key,导致的就是元素丢失了

### Please provide a link to a minimal reproduction of the bug

_No response_

### Screenshots or videos

![images](https://camo.githubusercontent.com/3f51b5a32e6e5d5adabdebc5ef968150bdabc8d17a8dc1a535b8fb255d2165d0/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f616e7466696e63646e2f79396b776737445643642f726570726f647563652e676966)

### Please provide the version you discovered this bug in (check about page for version information)

_No response_

### Anything else?

_No response_

### Please provide a link to a minimal reproduction of the bug

_No response_

### Screenshots or videos

![images](https://camo.githubusercontent.com/3f51b5a32e6e5d5adabdebc5ef968150bdabc8d17a8dc1a535b8fb255d2165d0/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f616e7466696e63646e2f79396b776737445643642f726570726f647563652e676966)

### Please provide the version you discovered this bug in (check about page for version information)

_No response_

### Anything else?

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.