mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 13:37:04 +00:00
The Alternator TTL expiration scanner scans an entire table using many small pages. If any of those pages time out for some reason (e.g., an overload situation), we currently consider the entire scan to have failed and wait for the next scan period (which by default is 24 hours) when we start the scan from scratch (at a random position). There is a risk that if these timeouts are common enough to occur once or more per scan, the result is that we double or more the effective expiration lag. A better solution, done in this patch, is to retry from the same position if a single page timed out - immediately (or almost immediately, we add a one-second sleep). Fixes #11737 Signed-off-by: Nadav Har'El <nyh@scylladb.com> Closes #12092