incubator-hugegraph
incubator-hugegraph copied to clipboard
fix(server): prevent graph clear API from clearing meta table in MySQL backend storage
Purpose of the PR
Main Changes
The PR fixes the issue where the graph clear API mistakenly clears the meta table in MySQL backend storage. Since version 1.7.0, HugeGraph only supports "hstore, rocksdb, hbase, and memory" as backend storage options. Future checks will be performed to ensure that similar issues do not exist in these supported backends.
Verifying these changes
- [ ] Trivial rework / code cleanup without any test coverage. (No Need)
- [ ] Already covered by existing tests, such as (please modify tests here).
- [ ] Need tests and can be verified as follows:
- xxx
Does this PR potentially affect the following parts?
- [ ] Dependencies (add/update license info & regenerate_known_dependencies.sh)
- [ ] Modify configurations
- [ ] The public API
- [ ] Other affects (typed here)
- [ ] Nope
Documentation Status
- [ ]
Doc - TODO - [ ]
Doc - Done - [ ]
Doc - No Need
Merge it first (maybe we need handle the ci/code problem in another PR) @LYD031106 ?
Based on the logs, the test failures are primarily due to duplicate creation of the weight property key. I’ll submit a fix to enforce proper test data cleanup later.