mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-29 12:47:02 +00:00
The facilities in run.py script allow launching scylla over temporary directory, waiting for it to come alive, killing, etc. The limitation of those is that the work-dir create for scylla is tighly coupled with its pid. The object-storage test in next patches will need to check that the sstables are preserved on scylla restart and this hard binding of workdir to pid won't work. This patch generalizes the scylla run/abort helpers to accept an external directory to work on and adds a call to restart scylla process over existing directory. And one small related change here -- log file is opened in O_APPEND mode so that restarted scylla process continues writing into the old file. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>