bitflicker64 commented on code in PR #569:
URL: https://github.com/apache/hugegraph-doc/pull/569#discussion_r4653754636


##########
content/en/docs/clients/restful-api/graphspace.md:
##########
@@ -201,12 +213,18 @@ GET http://localhost:8080/graphspaces/gs1
 >   graphspace settings with `GET /graphspaces/{name}` first and preserve 
 > fields that are not being changed.
 > - **Compute Limit Inheritance**: Setting `compute_cpu_limit: 0` or 
 > `compute_memory_limit: 0` (or omitting them on creation) means continuously
 >   inheriting `cpu_limit` and `memory_limit`. Zero represents inheritance, 
 > not unlimited or zero allocation.
+>   In Server 1.8.0+, omitting a compute field on update preserves its current 
setting, while an explicit zero restores inheritance.
+>   In Server 1.7.0, zero is ignored on update, leaving previous configured 
limits unchanged instead of restoring inheritance.
+>   Responses retain that zero marker.
 > - **Quota Enforcement**: Exceeding `max_graph_number` causes subsequent 
 > graph creations to fail with `reach graph limit`. Exceeding
 >   `storage_limit` triggers PD storage enforcement, automatically marking all 
 > graphs in the space as `ReadOnly` until usage drops below the
 >   quota on the next patrol cycle.
 > - **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.

Review Comment:
   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`.



-- 
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]

Reply via email to