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
scrub: repeated snapshot of KS will be created for multiple tables in each KS #8212
Comments
The scrub code was introduced in ef1bdeb by @elcallio , and modified by @xemul recently. api/storage_service.cc
We can fix the problem by adding table name to |
The snapshots are created inside the But Scylla doesn't allow to have duplicate snapshot name for one keyspace, even the snapshots are in different table directories. WorkaroundThe issue can be workaround by add '--no-snapshot' ( |
Fixes scylladb#8212 Some snapshotting operations call in on a single table at a time. When checking for existing snapshots in this case, we should not bother with snapshots in other tables. Add an optional "filter" to check routine, which if non-empty includes tables to check. Use case is "scrub" which calls with a limited set of tables to snapshot.
@avikivity need to backport for 4.4.1+ |
Fixes #8212 Some snapshotting operations call in on a single table at a time. When checking for existing snapshots in this case, we should not bother with snapshots in other tables. Add an optional "filter" to check routine, which if non-empty includes tables to check. Use case is "scrub" which calls with a limited set of tables to snapshot. Closes #8240 (cherry picked from commit f44420f)
Fixes #8212 Some snapshotting operations call in on a single table at a time. When checking for existing snapshots in this case, we should not bother with snapshots in other tables. Add an optional "filter" to check routine, which if non-empty includes tables to check. Use case is "scrub" which calls with a limited set of tables to snapshot. Closes #8240 (cherry picked from commit f44420f)
Backported to 4.3, 4.4 (already fixed in 4.5). |
Installation details
Scylla version (or git commit hash): 4.4.rc1-0.20210223.9fc582ee8 , 4.5.dev-0.20210118.faf71c6f7
Cluster size: 1
OS (RHEL/CentOS/Ubuntu/AWS AMI): CentOS7
Description
Currently a snapshot of KS will be created for processing each table, if the ks has multiple tables, and the snapshot is create very quick, then snapshot name with timestamp will be repeated.
Test Scenario
nodetool scrub --skip-corrupted ks
/Cc @roydahan @juliayakovlev
The text was updated successfully, but these errors were encountered: