Skip to content

docs(store): explain partition diagnostics - #583

Open
imbajin wants to merge 1 commit into
apache:masterfrom
hugegraph:codex/repair-store-partition-docs
Open

imbajin wants to merge 1 commit into
apache:masterfrom
hugegraph:codex/repair-store-partition-docs

Conversation

@imbajin

@imbajin imbajin commented Dec 3, 2026

Copy link
Copy Markdown
Member

Purpose

The Chinese and English Store quickstarts now describe the response from a local GET /v1/partition/{id}. A missing local Raft group returns HTTP 404. The response can still include basic details if membership is unavailable.

Store 分区详情的缺组与退位响应

Companion Server change

Verification

Compared the examples with response checks and ran the website link validation.

- Document the local Store partition detail route.
- Explain the missing Raft group response.
- Keep unavailable membership separate from basic details.
@imbajin
imbajin marked this pull request as ready for review December 3, 2026 07:17

@imbajin imbajin left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Score: 6.5/10 · Confidence: high

Blocking: yes

Summary

The new partition response guarantees depend on a server change that has not landed in Apache HugeGraph.

Evidence

Current Apache master dereferences the missing partition engine and does not catch leadership loss while reading membership; the linked fork PR #391 is still open.

Validation notes

Source and discussion review only; no running Store cluster was tested.

| GET | `/-/scan` | State of the running scan streams |
| GET | `/v1/partitions` | All Raft groups on this node with per-partition metrics. Add `?flags=accurate` for exact key counts, which is slower. |
| GET | `/v1/partition/{id}` | One Raft group by partition id, including role, leader, peers and committed index |
| GET | `/v1/partition/{id}` | One local Raft group, including role, leader and committed index. Returns HTTP 404 if the node has no such group. |

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Scope these responses to the server version that implements them

Current Apache HugeGraph PartitionAPI.getPartition() dereferences a missing engine and does not catch leadership loss during the membership reads, so a missing group or step-down can fail instead of returning the response described here and below. The linked server change is still open against the fork. Please defer these claims until the equivalent change ships in Apache, or clearly identify the version/dependency in both languages.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant