Open mikliapko opened 1 week ago
@mikliapko this looks like a test setup error. One of the requirements of restoring schema is to do so into an empty cluster - which is not the case here. This still worked fine in the past, because the existing schema and restored schema were the same, so restored sstables from backup didn't break anything.
This requirement will be less invasive when working with Scylla 6.0 (I have yet to prepare the docs describing it), but it will say that the restore destination cluster can't have any overlapping schema with the restored schema. That's because with Scylla 6.0 SM restores schema via CQL and if overlapping schema exists, it returns the CQL error mentioned above.
Since the setup the test does is not valid, it was decided to remove it from dtest. https://github.com/scylladb/scylla-dtest/pull/4526
Preconditions:
Steps:
sctool restore -c 8ce76feb-d543-4d6d-8f6a-1e997726c4d1 --restore-schema --location s3:backup-bucket --snapshot-tag sm_20240621115957UTC
Actual result: The operation status is ERROR:
restore data: create ks (ks) with CREATE KEYSPACE ks WITH replication = {'class': 'org.apache.cassandra.locator.NetworkTopologyStrategy', 'datacenter1': '2'} AND durable_writes = true: Cannot add existing keyspace "ks"
Expected result: The operation status is DONE.
Environment:
Additional info: