Repository navigation
Keeper getRecursiveChildren request - #100998
Conversation
|
Workflow [PR], commit [5aa2a83] Summary: ⏳
AI ReviewSummaryThis PR adds PR Metadata
Missing context
Findings
ClickHouse Rules
Final Verdict
|
| @@ -458,6 +458,31 @@ struct RemoveRecursiveResponse : virtual Response | |||
| { | |||
| }; | |||
|
|
|||
| struct GetChildrenRecursiveRequest : virtual Request | |||
| { | |||
| String path; | |||
There was a problem hiding this comment.
Typo in the comment: this request limits the number of returned descendants, not "deleted nodes".
Could you reword to something like: strict limit for number of returned child nodes?
e6b8548 to
33d9db5
Compare
| Coordination::Error code = response.error; | ||
|
|
||
| maybeSetSpanStatus(maybe_span, code); | ||
| res = std::move(response.children); |
There was a problem hiding this comment.
tryGetChildrenRecursive moves response.children into res unconditionally, even when the request failed.
That differs from the existing tryGet/tryList pattern (they only write outputs on ZOK) and can leak stale/partial results to callers that reuse the same output vector.
Could you gate assignment the same way, e.g.:
maybeSetSpanStatus(maybe_span, code);
if (code == Coordination::Error::ZOK)
res = std::move(response.children);
return code;|
What I meant was to have ListRecursive request and response internally. |
|
The flaky check failure is fixed in #102148, let's update the branch. |
LLVM Coverage Report
Changed lines: 79.27% (562/709) · Uncovered code |
antonio2368
left a comment
There was a problem hiding this comment.
Update SystemTablesDataTypes::operationEnum
| Coordination::Error code = response.error; | ||
|
|
||
| maybeSetSpanStatus(maybe_span, code); | ||
| res = std::move(response.children); |
db75766
|
Hi @scanhex12 @antonio2368 — while reviewing this PR I found the following:
Happy to discuss — close anything that's wrong or already addressed. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Added getChildrenRecursive (ListRecursive) request to ClickHouse Keeper and lsr command to clickhouse-keeper-client. This closes #99916
Documentation entry for user-facing changes
Version info
26.4.1.886