mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
During cql connection removal we wait for all outstanding sends to complete by waiting for _ready_to_respond future to resolve, but if at this point connection is in _pending_responders then poller my call do_flush() and try to reuse same _ready_to_respond future that already has a continuation attached to it. The fix is to remove connection from the poller before waiting for _ready_to_respond. The special measures should be taken to prevent the connection from been added to the poller again, so we set _flush_requested to avoid exactly that.