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

Rows are not restored using AzureStorageDriver #449

Open
rozele opened this issue Jun 7, 2017 · 1 comment · May be fixed by #448
Open

Rows are not restored using AzureStorageDriver #449

rozele opened this issue Jun 7, 2017 · 1 comment · May be fixed by #448

Comments

@rozele
Copy link

rozele commented Jun 7, 2017

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
  1. 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!');
  1. 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>
  1. Uninstall cassandra and cleanup associated data
  2. Reinstall cassandra
  3. Restore the schema manually (until patch for Azure blob schema is ready)
  4. 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>
  1. Run SELECT * FROM demo.map and find no data.
rozele added a commit to rozele/dcos-cassandra-service that referenced this issue Jun 7, 2017
AzureStorageDriver downloads to a different location from the S3StorageDriver. This makes the download behavior more consistent.

Fixes mesosphere-backup#449
rozele added a commit to rozele/dcos-cassandra-service that referenced this issue Jun 7, 2017
AzureStorageDriver downloads to a different location from the S3StorageDriver. This makes the download behavior more consistent.

Fixes mesosphere-backup#449
@rozele rozele linked a pull request Jun 7, 2017 that will close this issue
rozele added a commit to rozele/dcos-cassandra-service that referenced this issue Jul 11, 2017
AzureStorageDriver downloads to a different location from the S3StorageDriver. This makes the download behavior more consistent.

Fixes mesosphere-backup#449
@triclambert
Copy link
Contributor

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)

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 a pull request may close this issue.

2 participants