Skip to content

Adds test of Scylla Manager Alternator restore #11786

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m-szymon
Copy link

@m-szymon m-szymon commented Aug 19, 2025

This patch adds test_alternator_backup_feature which checks Scylla Manager's feature for backing up and restoring Alternator data. It reuses workflow of previous CQL backup test test_restore_backup_with_task, but:

  • it pre-creates Alternator tables,
  • it fills tables and runs post-restore check using YSCB.

Besides plain table+data restore, it is ready to check additional features:

  • table names including special characters - requires changing table names in test-cases/manager/manager-regression-alternator-singleDC-set-distro.yaml and sdcm/utils/alternator/consts.py
  • restoring data with secondary indexes - requires:
    • updating YCSB to support index in scan command
    • setting lsi = True, gsi = True in ClusterTester::pre_create_alternator_backuped_tables
    • uncommenting additional stress command in test-cases/manager/manager-regression-alternator-singleDC-set-distro.yaml to include gsi and lsi tables.

When defined in configuration, the tests passes to Scylla Manager additional command line parameters --alternator-access-key-id --alternator-secret-access-key.

Fixes #11696

Testing

  • [ ]

PR pre-checks (self review)

  • I added the relevant backport labels
  • I didn't leave commented-out/debugging code

Reminders

  • Add New configuration option and document them (in sdcm/sct_config.py)
  • Add unit tests to cover my changes (under unit-test/ folder)
  • Update the Readme/doc folder relevant to this change (if needed)

@m-szymon m-szymon force-pushed the alternator_backup_test branch 2 times, most recently from 3a92829 to 08a966c Compare August 19, 2025 13:13
…tore

This patch adds `test_alternator_backup_feature` which checks Scylla Manager's feature
for backing up and restoring Alternator data.
It reuses workflow of previous CQL backup test `test_restore_backup_with_task`, but:
- it pre-creates Alternator tables,
- it fills tables and runs post-restore check using YSCB.

Besides plain table+data restore, it is ready to check additional features:
- table names including special characters - requires changing table names in
  `test-cases/manager/manager-regression-alternator-singleDC-set-distro.yaml` and `sdcm/utils/alternator/consts.py`
- restoring data with secondary indexes - requires:
    - updating YCSB to support index in scan command
    - setting `lsi = True, gsi = True` in ClusterTester::pre_create_alternator_backuped_tables
    - uncommenting additional stress command in
      `test-cases/manager/manager-regression-alternator-singleDC-set-distro.yaml` to include `gsi` and `lsi` tables.

When defined in configuration, the tests passes to Scylla Manager additional command line parameters
 `--alternator-access-key-id` `--alternator-secret-access-key`.

Fixes scylladb#11696
@m-szymon m-szymon force-pushed the alternator_backup_test branch from 08a966c to 76e477a Compare August 19, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scylla Manager feature test for Alternator backup and restore
1 participant