incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

fix(server): prevent graph clear API from clearing meta table in MySQL backend storage

Open LYD031106 opened this issue 1 year ago • 1 comments

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

LYD031106 avatar Oct 24 '25 14:10 LYD031106

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.

LYD031106 avatar Dec 10 '25 07:12 LYD031106