OpenAtomFoundation / pikiwidb

a high-performance, large-capacity, multi-tenant, data-persistent, strong data consistency based on raft, Redis-compatible elastic KV data storage system based on RocksDB
BSD 3-Clause "New" or "Revised" License
195 stars 62 forks source link

Rename 后会丢失原表的元素 #437

Open SamuelSze1 opened 3 weeks ago

SamuelSze1 commented 3 weeks ago

Is this a regression?

Yes

Description

Screenshot 2024-08-18 001901

rename 过程中只是单纯的把原表的metadata发给新表,没有把原表的元素也发转给新表 Screenshot 2024-08-24 120011 Screenshot 2024-08-24 120111

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

Please provide a link to a minimal reproduction of the bug

No response

Screenshots or videos

images

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

No response

Anything else?

No response

Issues-translate-bot commented 3 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


Title: Rename, the elements of the original table will be lost.