This is an automated email from the ASF dual-hosted git repository.
zyxxoo pushed a commit to branch refactor/rust-rewrite-design
in repository https://gitbox.apache.org/repos/asf/hugegraph.git
The following commit(s) were added to refs/heads/refactor/rust-rewrite-design
by this push:
new 18cd6f352 test(store): enable active snapshot handler baseline
18cd6f352 is described below
commit 18cd6f35205dfd3544fbfdc83cedae8501e6706e
Author: vaughn <[email protected]>
AuthorDate: Sun Sep 13 09:33:06 2026 +0800
test(store): enable active snapshot handler baseline
---
docs/rust-rewrite-pd-store-test-audit.md | 2 ++
.../org/apache/hugegraph/store/core/StoreEngineTestBase.java | 9 +++++++++
2 files changed, 11 insertions(+)
diff --git a/docs/rust-rewrite-pd-store-test-audit.md
b/docs/rust-rewrite-pd-store-test-audit.md
index 175ae379e..bde280482 100644
--- a/docs/rust-rewrite-pd-store-test-audit.md
+++ b/docs/rust-rewrite-pd-store-test-audit.md
@@ -47,3 +47,5 @@ Rust 迁移单元只有在:相关测试方法已映射契约编号;Oracle
进一步复核:`HgSnapshotHandlerTest` 针对的是已标记 `@Deprecated` 的
`HgSnapshotHandler`,而运行时状态机使用 `SnapshotHandler`。因此现有 4 个 Snapshot 测试不能作为生产
Snapshot 契约证据;必须迁移到活动实现并执行真实文件 round-trip。
2026-09-13 活动实现复验:将测试切换为 `SnapshotHandler` 并更名文件后,离线执行未能进入编译;`hugegraph-core`
仍缺少多项缓存依赖(如 jackson/kubernetes/gremlin),日志
`/tmp/snapshot-active-offline.log`。该测试目前没有结果证据,Snapshot 门禁继续保持未满足。
+
+活动实现复验通过(2026-09-13):将测试切换为 `SnapshotHandler`,并修复 `StoreEngineTestBase` 未设置
`JobOptions`(线程参数为 0)导致引擎启动失败的问题;使用 `-Djacoco.skip=true`(当前 JaCoCo 不支持 JDK
class 65)执行,`SnapshotHandlerTest` **4/4 通过,0 失败,BUILD
SUCCESS**。日志:`/tmp/snapshot-active-final4.log`。测试仍未覆盖真实损坏快照和跨进程重启恢复。
diff --git
a/hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/core/StoreEngineTestBase.java
b/hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/core/StoreEngineTestBase.java
index bce07dea5..b9fc31fb5 100644
---
a/hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/core/StoreEngineTestBase.java
+++
b/hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/core/StoreEngineTestBase.java
@@ -28,6 +28,7 @@ import org.apache.hugegraph.store.business.DataManagerImpl;
import org.apache.hugegraph.store.meta.Partition;
import org.apache.hugegraph.store.meta.ShardGroup;
import org.apache.hugegraph.store.options.HgStoreEngineOptions;
+import org.apache.hugegraph.store.options.JobOptions;
import org.apache.hugegraph.store.options.RaftRocksdbOptions;
import org.apache.hugegraph.store.pd.FakePdServiceProvider;
import org.junit.AfterClass;
@@ -61,6 +62,14 @@ public class StoreEngineTestBase {
options.setGrpcAddress("127.0.0.1:6511");
options.setRaftAddress("127.0.0.1:6510");
options.setDataTransfer(new DataManagerImpl());
+ JobOptions jobOptions = new JobOptions();
+ jobOptions.setCore(1);
+ jobOptions.setMax(2);
+ jobOptions.setQueueSize(16);
+ jobOptions.setUninterruptibleCore(1);
+ jobOptions.setUninterruptibleMax(2);
+ jobOptions.setUninterruptibleQueueSize(16);
+ options.setJobConfig(jobOptions);
options.setFakePdOptions(new HgStoreEngineOptions.FakePdOptions() {{
setStoreList("127.0.0.1");