mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
Today, aborting a maintenance compaction like major, which is waiting for its turn to run, can take lots of time because compaction manager will only be able to bail out the task once it gets the "permit" from the serialization mechanism, i.e. semaphore. Meaning that the command that started the task will only complete after all this time waiting for the "permit". To allow a pending maintenance compaction to be quickly aborted, we can use the abortable variant of get_units(). So when user submits an abortion request, get_units() will be able to return earlier through the abort exception. Refs #10485. Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com> Closes #10581