[2020-02-18 16:05:52,497] DEBUG: Restoring table view_virtual_columns-08843b6345dc3be29798a0418295cfaa with sstableloader...
Unrecognized option: --storage-port
Traceback (most recent call last):
File "/usr/local/bin/medusa", line 11, in <module>
load_entry_point('cassandra-medusa==0.6.0.dev0', 'console_scripts', 'medusa')()
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/medusa/medusacli.py", line 212, in restore_node
verify, set(keyspaces), set(tables), use_sstableloader)
File "/usr/local/lib/python3.5/dist-packages/medusa/restore_node.py", line 51, in restore_node
keyspaces, tables)
File "/usr/local/lib/python3.5/dist-packages/medusa/restore_node.py", line 152, in restore_node_sstableloader
invoke_sstableloader(config, download_dir, keep_auth, fqtns_to_restore, cassandra.storage_port)
File "/usr/local/lib/python3.5/dist-packages/medusa/restore_node.py", line 176, in invoke_sstableloader
os.path.join(ks_path, table)])
File "/usr/local/lib/python3.5/dist-packages/gevent/subprocess.py", line 348, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command '['sstableloader', '-d', 'scylladb-test-4a53de998b', '--storage-port', '7000', '--username', 'xxx', '--password', 'xxx', '--no-progress', '/tmp/medusa-restore-55d11fa6-7324-499f-b2d3-24faedefa942/system_schema/view_virtual_columns-08843b6345dc3be29798a0418295cfaa']' returned non-zero exit status 1
The problem is that the sstableloader binary on ScyllaDB is different than Cassandra and it doesn't have the option --storage-port. The workaround that I did was to comment/remove the storage_port arg references on restore_node.py file. With this change, the restore runs successfully.
So I wonder how can we arrange a more elegant workaround to keep compatibility between Cassandra and ScyllaDB.