Skip to content

Conversation

@Michicosun
Copy link
Member

@Michicosun Michicosun commented Oct 15, 2025

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Add recursive variants of cp-cpr and mv-mvr commands in Keeper client.

@clickhouse-gh
Copy link

clickhouse-gh bot commented Oct 15, 2025

Workflow [PR], commit [817ef6e]

Summary:

job_name test_name status info comment
Integration tests (amd_asan, flaky) error

@clickhouse-gh clickhouse-gh bot added the pr-feature Pull request with new product feature label Oct 15, 2025
@antonio2368 antonio2368 self-assigned this Oct 15, 2025
}
};

class CPRCommand : public IKeeperClientCommand
Copy link
Member

Choose a reason for hiding this comment

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

It's like we are giving CPR to Keeper 🩺

/// Copy tree
for (const auto & [subpath, data, version] : subtree_nodes)
{
ops.push_back(zkutil::makeCheckRequest(src + subpath, version));
Copy link
Member

Choose a reason for hiding this comment

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

you can exclude check if you have remove_src. To fail early, you can do removes first

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed, thanks!

is_completed = true;
return;
}
case Coordination::Error::ZBADVERSION: {
Copy link
Member

Choose a reason for hiding this comment

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

if we want to make it even more robust, we could retry on ZNONODE and the missing node is not the root source node.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a check for the first failed op path

@Michicosun Michicosun added this pull request to the merge queue Oct 16, 2025
Merged via the queue into master with commit 78a7ef3 Oct 16, 2025
117 of 123 checks passed
@Michicosun Michicosun deleted the keeper_client_recursive_copy_move branch October 16, 2025 09:35
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature Pull request with new product feature pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants