Skip to content

[FEATURE] Allow sourceDir to be inside data directory #73

@2ban

Description

@2ban

Is your feature request related to a problem? Please describe.
When running restore with import we need to set sourceDir that is not inside data directory. This is difficult if cassandra is in kubernetes and it already has been mounted to volume. We cannot re-mount cassandra directory to subPath as this will require moving all cassandra data files one level down.

Describe the solution you'd like
A possibility to import restore data to directory inside cassandra data folder. Or any alternatives that could resolve this problem.

Describe alternatives you've considered
Re-mounting Cassandra to subPath, and another subPath dir for restore imports.
Attaching additional volume to cassandra - this will work but looks like overhead when we want to store backups on s3 but still need additional local storage.

Additional context
Condition that prevents from importing to dir inside of data dir.
(https://github.com/instaclustr/esop/blob/master/src/main/java/com/instaclustr/esop/impl/restore/RestoreOperationRequest.java#L358)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions