mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 11:00:35 +00:00
When a Raft API call such as `add_entry`, `set_configuration` or `modify_config` takes too long, we need to time-out. There was no way to abort these calls previously so we would do that by discarding the futures. Recently the APIs were extended with `abort_source` parameters. Use this. Also improve debuggability if the functions throw an exception type that we don't expect. Previously if they did, a cryptic assert would fail somewhere deep in the generator code, making the problem hard to debug.