Files
scylladb/repair
Aleksandra Martyniuk 0ce9db2329 repair: throw abort_requested_exception when abort is requested
If abort is requsted during bootstrap then a node should exit normally.
To achieve so, abort_requested_exception should be thrown as main
handles it gracefully.

In data_sync_repair_task_impl::run exceptions from all shards are
wrapped together into std::runtime_exception and so they aren't
handled as they are supposed to.

Throw abort_requested_exception when shutdown was requested.
Throw abort_requested_exception also if repair::task_manager_module::is_aborted,
so that force_terminate_all_repair_sessions acts the same regardless
the state of the repair.

To maintain consistency do the same for user_requested_repair_task_impl.

Fixes: #15710.

Closes scylladb/scylladb#15722
2023-10-17 10:08:06 +03:00
..
2023-02-14 11:19:03 +02:00
2023-02-14 11:19:03 +02:00