radondb / radon

RadonDB is an open source, cloud-native MySQL database for building global, scalable cloud services

Home Page:https://radondb.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] Potential risks on radon metadata based on different os.

hustjieke opened this issue · comments

For windows(default not set case sensitive) and some ios system(If not set case sensitive), If radon has metadata like T1.json and t1.json and do operation like drop or rename with table T1.json, the t1.json will alse be removed.
The create alse has the same risks, e.g.:

create table t1(....) success,   metadata file: t1.json
create table T1(...) fail, (The backend not set case sensitive, so the table t1_000...has already exists),radon will delete `T1.json` file,also the `t1.json` file will be removed too.

We should add some checks on if the system has set case sensitive or not.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.