Open venkata-naladala opened 2 years ago
There used to be a bug in the sstableloader that made it not work when encryption was enabled. The solution to that was to bump (~manually replace a jar) something that I meanwhile forgot about. However, I'm not sure how that would help here.
Project board link
Medusa version: 0.13.4 Cassandra version: 4.0.6
One of our customers was having an issue while using sstableloader option with medusa when encryption was enabled on Cassandra. I was testing this out on a single node cluster. I took the backup with the below command and tried to restore it with the below restore command. The restore is failing on the node.
Backup command:
Restore command:
The below is from medusa.log
The below is from the stderr file that was created under tmp/medusa-job directory
I have tried with sstableloader utility it works with port 7000 (default) and fails if port 7001 was used.
In the below code section, self._release_version is None so it is skipping the condition and defaulting to 7001. I wasn't able to figure out where the value is set for self._release_version.
https://github.com/thelastpickle/cassandra-medusa/blob/6f436885e3e06330afaf748564a11b168f6331c5/medusa/cassandra_utils.py#L260
I have hardcoded the version as 4.0.6 like below and it works as expected.
One workaround was setting both storage_port and ssl_storage_port to 7000 in cassandra.yaml file and the restore command work successfully as it is using the 7000 port.
┆Issue is synchronized with this Jira Story by Unito ┆Issue Number: MED-38