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 e7f1ee4a1 test(pd): fix partition setup and record baseline mismatch
e7f1ee4a1 is described below

commit e7f1ee4a19fa0a603c38184c4457b06c5bb0570d
Author: vaughn <[email protected]>
AuthorDate: Thu Sep 10 09:30:29 2026 +0800

    test(pd): fix partition setup and record baseline mismatch
---
 docs/rust-rewrite-partition-pilot.md                                  | 2 ++
 .../main/java/org/apache/hugegraph/pd/core/PartitionServiceTest.java  | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/docs/rust-rewrite-partition-pilot.md 
b/docs/rust-rewrite-partition-pilot.md
index 7df8fb950..1654bddad 100644
--- a/docs/rust-rewrite-partition-pilot.md
+++ b/docs/rust-rewrite-partition-pilot.md
@@ -61,3 +61,5 @@ Rust 工程门禁记录:`cargo fmt -- --check`、`cargo clippy 
--all-targets -
 缓存 Oracle 补充:新增缓存版本等价与失效拒绝测试;`verify.sh` 运行结果为 **11 passed, 0 
failed**。这仍是模型层证据,真实 watch 通知丢失场景待 PD 集成环境恢复后执行。
 
 仓库级校验记录(2026-09-10):`mvn -B -o -DskipTests validate` 全模块通过(`BUILD 
SUCCESS`),RAT、Checkstyle 与 POM 校验均通过;该结果不替代需要外部依赖的真实集成测试。
+
+真实集成结果(2026-09-10,修复初始化边界后):`hg-pd-test` Partition 过滤测试共 32 项,30 通过、0 错误、2 
失败。`PartitionServiceTest.testCombinePartition` 与 `testCombinePartition2` 
均在合并后范围断言失败:期望 `endKey=5462`,实际 `16386`。该差异尚未解释,不得标记契约兼容或 GO;Surefire 原始报告位于 
`hugegraph-pd/hg-pd-test/target/surefire-reports`,完整日志为 
`/tmp/pd-partition-test-2.log`。
diff --git 
a/hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/core/PartitionServiceTest.java
 
b/hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/core/PartitionServiceTest.java
index 3514fcbe1..198c35da9 100644
--- 
a/hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/core/PartitionServiceTest.java
+++ 
b/hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/core/PartitionServiceTest.java
@@ -24,6 +24,7 @@ import java.util.Collections;
 import java.util.List;
 
 import org.apache.hugegraph.pd.PartitionService;
+import org.apache.hugegraph.pd.common.PartitionUtils;
 import org.apache.hugegraph.pd.common.PDException;
 import org.apache.hugegraph.pd.grpc.MetaTask;
 import org.apache.hugegraph.pd.grpc.Metapb;
@@ -133,6 +134,9 @@ public class PartitionServiceTest extends PDCoreTestBase {
                                                             .build();
             storeInfoMeta.updateShardGroup(shardGroup);
 
+            if (lastId >= PartitionUtils.MAX_VALUE) {
+                break;
+            }
             var partitionShard = this.service.getPartitionByCode("graph0", 
lastId);
             if (partitionShard != null) {
                 lastId = partitionShard.getPartition().getEndKey();

Reply via email to