iiiiSaber commented on PR #3482:
URL: https://github.com/apache/hugegraph/pull/3482#issuecomment-7013064507
Thanks for the follow-up review. Here are the details and recorded results
from my latest local multi-Server verification.
### Environment and tested source
- Run date: November 19, 2026, starting at 22:19:55 (Asia/Shanghai).
- HugeGraph 1.8.0 built from source, using Temurin 17.0.21 and Maven 3.9.9.
- Tested source: `3c36b71732543ef216b89ea4d028956422574d3d`. Recorded
GraphManager and GraphKey source hashes match this commit.
- One real PD, one real Store and two real Server JVMs on one machine, with
fresh dedicated data directories and loopback addresses. PD notifications were
not mocked.
| Process | REST port | Other ports |
|---|---|---|
| PD | 28620 | gRPC 28686; Raft 28610 |
| Store | 28520 | gRPC 28500; Raft 28510 |
| Server A | 28080 | Gremlin 28182 |
| Server B | 28081 | Gremlin 28183 |
### Verification method
I used a temporary Python script to send requests through Server A and check
the resulting behavior on Server B:
- **ADD:** wait for B's notification receipt and graph construction logs
before making a graph lookup on B.
- **UPDATE:** wait for B's update-handler log, then verify its read mode
through the API.
- **REMOVE:** wait for B's close/removal logs, then check that its Gremlin
binding is absent.
- Write schema and vertices through A and read them through both REST and
Gremlin on B.
- Recreate the same graph name, verify that old data is absent, and verify
the new data.
- Use the same graph name in two spaces to check update and deletion
isolation.
- Reload B and verify that the replacement graph and its data remain
available.
Checking B's logs before graph lookups avoids counting lazy graph loading as
proof of ADD notification propagation.
### Results
All **17 scripted functional checkpoints passed**. These are checkpoints in
one cluster run, not 17 existing project test cases or separate deployments.
| # | Checkpoint | Result |
|---|---|---|
| 1 | create notification: DEFAULT/key_probe | PASS |
| 2 | cross-Server REST and Gremlin data: DEFAULT/key_probe | PASS |
| 3 | update notification: DEFAULT/key_probe -> ALL | PASS |
| 4 | update notification: DEFAULT/key_probe -> OLTP_ONLY | PASS |
| 5 | remove notification: DEFAULT/key_probe | PASS |
| 6 | create notification: DEFAULT/key_probe | PASS |
| 7 | same-name recreation has no old vertices | PASS |
| 8 | cross-Server REST and Gremlin data: DEFAULT/key_probe | PASS |
| 9 | create notification: key_space_a/same_name | PASS |
| 10 | create notification: key_space_b/same_name | PASS |
| 11 | update notification: key_space_a/same_name -> ALL | PASS |
| 12 | read-mode update isolated by graph space | PASS |
| 13 | remove notification: key_space_a/same_name | PASS |
| 14 | deletion isolated by graph space | PASS |
| 15 | Server B reload retains replacement graph and data | PASS |
| 16 | remove notification: DEFAULT/key_probe | PASS |
| 17 | remove notification: key_space_b/same_name | PASS |
Example ADD evidence from Server B, before querying the graph:
```text
2026-11-19 22:21:27 [grpc-default-executor-1] [INFO] o.a.h.c.GraphManager -
Accept graph add signal from etcd for DEFAULT-key_probe
2026-11-19 22:21:27 [grpc-default-executor-1] [INFO] o.a.h.c.GraphManager -
Add graph space:DEFAULT graph:key_probe
```
Example read-mode update evidence:
```text
2026-11-19 22:21:30 [grpc-default-executor-2] [INFO] o.a.h.c.GraphManager -
Update graph space:DEFAULT graph:key_probe
```
B then returned `{"graph_read_mode":"ALL"}`. After same-name recreation, B
returned an empty vertex list and subsequently read the new `generation_two`
marker through REST and Gremlin. Reloading B retained that marker.
### Scripts and recorded output
I am uploading the scripts and recorded output individually, using their
original file extensions.
- `cluster.py`: runtime configuration and process startup.
- `verify.py`: API requests, receiving-Server log checks and assertions.
- `results.json`: all 17 recorded checkpoints with responses and event
evidence.
- `verification.log`: concise PASS output from the run.
[verification.log](https://github.com/user-attachments/files/35094052/verification.log)
[Upload these files here and replace this placeholder with their GitHub
attachment links.]
### Reproduction
With Java 17 and Maven available, use a separate source checkout at
`3c36b7173`, set `JAVA_HOME` to the JDK, and build:
```bash
export HUGEGRAPH_SOURCE="$PWD"
mvn package \
-pl
hugegraph-server/hugegraph-dist,hugegraph-pd/hg-pd-dist,hugegraph-store/hg-store-dist
\
-am -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
```
Place the three Python scripts in a fresh writable directory outside the
checkout. With Python 3, PyYAML and the listed ports available:
```bash
python3 run_retry.py
```
The launcher generates a fresh local PD REST secret. Server REST
authentication is disabled for this loopback-only setup. The uploaded launcher
has been adapted to accept `HUGEGRAPH_SOURCE` and `JAVA_HOME` instead of
machine-specific paths; those portability edits were syntax-checked, not
counted as another run.
This verifies the listed local multi-Server functional scenarios.
[cluster.py](https://github.com/user-attachments/files/35094025/cluster.py)
No integration-test or CI code is added to this PR.
[verify.py](https://github.com/user-attachments/files/35093967/verify.py)
[results.json](https://github.com/user-attachments/files/35093976/results.json)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]