From c0e05d020546fc4ac564a66611cf1214d715e83d Mon Sep 17 00:00:00 2001 From: "vaughn.zhang" Date: Thu, 14 Dec 2023 18:50:13 +0800 Subject: [PATCH] fix: rocksdb tp unit failed --- .../org/apache/hugegraph/tinkerpop/TestGraphProvider.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraphProvider.java b/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraphProvider.java index 9985476209..d2058c96ec 100644 --- a/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraphProvider.java +++ b/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraphProvider.java @@ -30,6 +30,7 @@ import org.apache.commons.configuration2.Configuration; import org.apache.commons.configuration2.PropertiesConfiguration; +import org.apache.hugegraph.backend.store.rocksdb.RocksDBOptions; import org.apache.tinkerpop.gremlin.AbstractGraphProvider; import org.apache.tinkerpop.gremlin.FeatureRequirement; import org.apache.tinkerpop.gremlin.FeatureRequirements; @@ -267,7 +268,8 @@ public Graph openTestGraph(final Configuration config) { String graphName = config.getString(CoreOptions.STORE.name()); Class testClass = (Class) config.getProperty(TEST_CLASS); String testMethod = config.getString(TEST_METHOD); - + config.setProperty(RocksDBOptions.DATA_PATH.name(), config.getString(RocksDBOptions.DATA_PATH.name()) + "/" + graphName); + config.setProperty(RocksDBOptions.WAL_PATH.name(), config.getString(RocksDBOptions.WAL_PATH.name()) + "/" + graphName); TestGraph testGraph = this.graphs.get(graphName); if (testGraph == null) { this.graphs.putIfAbsent(graphName, this.newTestGraph(config));