mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-30 05:07:05 +00:00
Materialized view updates participate in a retirement program, which makes sure that they are immediately taken down once their target node is down, without having to wait for timeout (since views are a background operation and it's wasteful to wait in the background for minutes). However, this mechanism has very delicate lifetime issues, and it already caused problems more than once, most recently in #5459. In order to make another bug in this area less likely, the two implementations of the mechanism, in on_down() and drain_on_shutdown(), are unified. Possibly refs #7572 Closes #7624