imbajin commented on code in PR #570:
URL: https://github.com/apache/hugegraph-doc/pull/570#discussion_r4638691082


##########
content/cn/docs/clients/client/hugegraph-client.md:
##########
@@ -1004,8 +1003,29 @@ spaceManager.createGraphSpace(graphSpace);
 | GraphSpace - 属性 | getName() / getNickname() / getDescription() | 获取名称/昵称/描述 |
 | | getGraphNumberUsed() / getRoleNumberUsed() | 获取已使用的图数量/角色数量 |
 | | getCpuUsed() / getMemoryUsed() / getStorageUsed() | 获取已使用的资源 |
+| | getStorageUsedKb() | 获取 KB 精度的存储用量(需 Toolchain `master` 构建的 Client 
`1.8.0`),服务端未提供有效指标时返回 null |
 | | getCreateTime() / getUpdateTime() | 获取创建时间/更新时间 |
 | GraphSpace - 配置 | setDescription(String) / setNickname(String) | 设置描述/昵称 |
 | | setMaxGraphNumber(int) / setMaxRoleNumber(int) | 设置最大图数量/角色数量 |
 | | setCpuLimit(int) / setMemoryLimit(int) / setStorageLimit(int) | 设置资源配额 |
+| | setComputeCpuLimit(int) / setComputeMemoryLimit(int) | 设置计算配额,更新语义见下文 |
 | | setConfigs(Map<String, Object>) | 设置额外的配置项 |
+{.wide .expand}
+
+#### 8.3 计算配额与存储用量 {#graphspace-resource-updates}
+
+按 4.2 节由 Toolchain `master` 构建的 Client `1.8.0` 
会区分“未设置计算配额”和“显式设置为零”。连接支持计算配额继承的 Server 时:
+
+| 更新 GraphSpace 时的操作 | 结果 |
+| --- | --- |
+| 不调用 `setComputeCpuLimit` / `setComputeMemoryLimit` | 请求省略该字段,保留原值 |

Review Comment:
   **⚠️ Qualify when quota fields are omitted**
   
   This is only true while the fields are unset. A `GraphSpace` returned by 
`GraphSpaceAPI.get()` can already contain compute limits from the response; 
`GraphSpaceReq` copies those non-null values into the update even if the 
application never calls either setter. Updating a previously fetched object can 
therefore resend stale limits and overwrite a concurrent quota change. Please 
qualify the table for unset fields and explain that fetched objects may resend 
their existing values; the English table needs the same correction. This is 
based on source inspection; I did not run a live update.



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