mesosphere-backup / dcos-cassandra-service

DEPRECATED—Open source Apache Cassandra running on DC/OS is now replaced by mesosphere/dcos-commons/frameworks/cassandra. This repository will be deleted at the end of 2017.
Apache License 2.0
116 stars 53 forks source link

Rows are not restored using AzureStorageDriver #449

Open rozele opened 7 years ago

rozele commented 7 years ago

Issue: When you try to restore Cassandra from the DC/OS CLI from Azure blob, the rows are not restored correctly.

Version: 1.0.25-3.0.10 Environment: Azure ACS

Repro steps: 1) Install cassandra from DC/OS CLI, using default config:

dcos package install cassandra

2) Add a keyspace, table, and some rows:

cqlsh> CREATE KEYSPACE demo WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };
cqlsh> CREATE TABLE demo.map (key varchar, value varchar, PRIMARY KEY(key));
cqlsh> INSERT INTO demo.map(key, value) VALUES('Cassandra', 'Rocks!');
cqlsh> INSERT INTO demo.map(key, value) VALUES('StaticInfrastructure', 'BeGone!');
cqlsh> INSERT INTO demo.map(key, value) VALUES('Buzz', 'DC/OS is the new black!');

3) Backup the cluster to Azure Blob

dcos cassandra backup start \
  --backup_name=<name> \
  --external_location=azure://<container_name> \
  --azure_account=<storage_account_name> \
  --azure_key=<storage_account_key>

4) Uninstall cassandra and cleanup associated data 5) Reinstall cassandra 6) Restore the schema manually (until patch for Azure blob schema is ready) 7) Restore the cluster from Azure blob

dcos cassandra restore start \
  --backup_name=<name> \
  --external_location=azure://<container_name> \
  --azure_account=<storage_account_name> \
  --azure_key=<storage_account_key>

8) Run SELECT * FROM demo.map and find no data.

triclambert commented 6 years ago

This repo is deprecated and will be archived in one week. Please see the latest version of Cassandra or DSE for DC/OS:

https://docs.mesosphere.com/service-docs/cassandra/ https://docs.mesosphere.com/service-docs/dse/ (enterprise-only)