Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

br/operator: add new command for run checksumming #58798

Open
YuJuncen opened this issue Jan 8, 2025 · 0 comments · May be fixed by #58801
Open

br/operator: add new command for run checksumming #58798

YuJuncen opened this issue Jan 8, 2025 · 0 comments · May be fixed by #58801
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@YuJuncen
Copy link
Contributor

YuJuncen commented Jan 8, 2025

Enhancement

As title, sometimes, after a PiTR, we may want to do checksum by the native ADMIN CHECKSUM statement, but that will almost impossible to get CRC64XOR right after a table ID rewriting.

We may provide a subcommand for BR, that generates rewrite rule by a specified backup storage and runs checksum in the target cluster.

An example:

> br operator checksum -s $(get-backup) -f 'test.*' -u tc-pd:2379 --checksum-concurrency 256 --table-concurrency 20

[{"db_name":"test","table_name":"sbtest1","checksum":14313396040806895863,"total_bytes":535765921376,"total_kvs":1319620496}]
@YuJuncen YuJuncen added the type/enhancement The issue or PR belongs to an enhancement. label Jan 8, 2025
@YuJuncen YuJuncen linked a pull request Jan 8, 2025 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant