From f1169e39b838407f2e741ba8c6eaf71044dd9fda Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Tue, 6 Jun 2017 20:01:36 -0400 Subject: [PATCH] Bug in storage driver resolution for backup upload The switch for the createStorageDriver call in StorageDriverFactory was missing the case for the backup upload task type. Fixes #446 --- .../dcos/cassandra/executor/backup/StorageDriverFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cassandra-executor/src/main/java/com/mesosphere/dcos/cassandra/executor/backup/StorageDriverFactory.java b/cassandra-executor/src/main/java/com/mesosphere/dcos/cassandra/executor/backup/StorageDriverFactory.java index 875eba93..4ea12d0a 100644 --- a/cassandra-executor/src/main/java/com/mesosphere/dcos/cassandra/executor/backup/StorageDriverFactory.java +++ b/cassandra-executor/src/main/java/com/mesosphere/dcos/cassandra/executor/backup/StorageDriverFactory.java @@ -18,7 +18,7 @@ public class StorageDriverFactory { public static BackupStorageDriver createStorageDriver(CassandraTask cassandraTask) { String externalLocation = null; switch (cassandraTask.getType()) { - case BACKUP_SNAPSHOT: + case BACKUP_UPLOAD: externalLocation = ((BackupUploadTask)cassandraTask).getBackupRestoreContext().getExternalLocation(); break; case BACKUP_SCHEMA: