Skip to content

docs(api): clarify quotas, loading ownership and deletion - #569

Open
imbajin wants to merge 5 commits into
apache:masterfrom
hugegraph:docs/server-api-semantics-20261115
Open

imbajin wants to merge 5 commits into
apache:masterfrom
hugegraph:docs/server-api-semantics-20261115

Conversation

@imbajin

@imbajin imbajin commented Nov 16, 2026

Copy link
Copy Markdown
Member

Purpose of the PR

Correct the bilingual REST reference where outdated semantics can change how clients limit results, update quotas or delete graph spaces.

  • Explain distinct-crosspoint limits, GraphSpace defaults and omitted-versus-zero compute limits.
  • Describe the PD-first prerequisite and partial-failure behavior of graph-space deletion.
  • Align LOADING ownership with the implemented protocol, restore the FAQ clear-graph link, and make the authorization model easier to read.

Validation: source-contract review, bilingual/anchor checks, strict build and independent artifact validation passed. Desktop/mobile checks covered the reference tables and deletion guidance. Public routes and existing heading links are preserved.

Pending standalone-storage and GraphID changes remain in their existing PRs.

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Blocking: no. Summary: The crosspoint limit, GraphSpace defaults, compute-limit inheritance, update requirements and PD-first deletion text match GraphSpaceAPI, GraphManager.dropGraphSpace and PD ConfigService on master. One wording issue in the LOADING ownership intro, in both languages.

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Blocking: no. Summary: The crosspoint limit, GraphSpace create defaults, compute-limit update semantics, PD-first deletion guidance and LOADING ownership text match GraphSpaceAPI, GraphManager.dropGraphSpace, PD ConfigService and GraphsAPI on master, and the earlier LOADING wording comment is fixed. One time-anchored sentence remains under the create table, in both languages.

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Blocking: no. Score: 9/10. Summary: The crosspoint limit, GraphSpace create defaults, compute-limit update semantics, PD-first deletion guidance and LOADING ownership text match CustomizedCrosspointsTraverser, GraphSpaceAPI, GraphManager.dropGraphSpace, PD ConfigService and GraphsAPI on master, and both earlier wording comments are fixed in both languages.

@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: 7.0/10 · Confidence: high

Blocking: yes

Summary

The new GraphSpace create and update instructions omit a version boundary: following them against Server 1.7.0 can fail creation or silently retain a compute quota.

Evidence

Server 1.7.0 GraphSpaceAPI initializes the omitted create limits to zero and checks them greater than zero; its update handler ignores zero compute limits. Current master handles these cases differently.

Validation notes

Compared source code and the 1.7.0 tag; did not run a Server/PD deployment. The existing Kubernetes namespace omission is pre-existing and outside the changed lines.

Pengzna
Pengzna previously approved these changes Nov 21, 2026

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Blocking: no. Summary: The 1.8.0 and 1.7.0 create defaults, compute-limit update rules, PD-first deletion text and crosspoint limit match GraphSpaceAPI, GraphManager.dropGraphSpace, PD ConfigService and CustomizedCrosspointsTraverser, and both version comments are fixed in both languages. One unversioned client warning remains.

> - **High-Precision Storage Metric**: In addition to the integer GB `storage_used` field, responses provide `storage_used_kb` for precise sub-GB
> tracking. `storage_percent` is calculated from this exact KB value.

Use a client that preserves omitted compute fields. Older clients can serialize an unset field as zero, unintentionally restoring inheritance.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor: "Older clients" names no version, so readers cannot tell whether their client resets compute limits; hugegraph-client 1.7.0 declares compute_cpu_limit and compute_memory_limit as int and always sends 0. Name the release, for example "hugegraph-client 1.7.0 and earlier serialize an unset compute field as 0, restoring inheritance.", and make the same change to "旧客户端" in content/cn/docs/clients/restful-api/graphspace.md.

@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: 7.0/10 · Confidence: high

Blocking: yes

Summary

The crosspoint limit guarantee does not hold on Server 1.7.0. The existing warning about older clients also lacks an identifiable version.

Evidence

Compared the 1.7.0 and current master crosspoint implementations and reviewed the existing client-version comment. The earlier 1.7.0 GraphSpace comments are addressed.

Validation notes

Source and discussion review only; no live Server/PD query or site build was run.


- capacity: Maximum number of vertices to be visited during the traversal process. Optional. Default is 10000000.
- limit: Maximum number of paths to be returned. Optional. Default is 10.
- limit: Maximum number of distinct crosspoints to return. Optional, default `10`; `-1` means no limit.

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.

Qualify the crosspoint limit for Server 1.7.0

Server 1.7.0 truncates an oversized intersection with subList(0, size - 1), rather than using limit. For example, five distinct common endpoints with limit=1 can yield four crosspoints. Current master fixes this, but the unqualified guarantee misleads 1.7.0 users. Please describe the older behavior and version boundary 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.

3 participants