mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
Currently, raft-based node operations with streaming use topology guards, but repair-based don't. Topology guards ensure that if a respective session is closed (the operation has finished), each leftover operation being a part of this session fails. Thanks to that we won't incorrectly assume that e.g. the old rpc received late belongs to the newly started operation. This is especially important if the operation involves writes. Pass a topology_guard down from raft_topology_cmd_handler to repair tasks. Repair tasks already support topology guards. Fixes: https://github.com/scylladb/scylladb/issues/27759