radondb / radon

RadonDB is an open source, cloud-native MySQL database for building global, scalable cloud services
https://radondb.io/
GNU General Public License v3.0
1.79k stars 218 forks source link

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

Closed hustjieke closed 3 years ago

hustjieke commented 3 years ago

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.

stale[bot] commented 3 years ago

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.