Files
scylladb/test/boost
Botond Dénes 34cdcaffae reader_concurrency_semaphore: un-bless permits when they become inactive
When the memory consumption of the semaphore reaches the configured
serialize threshold, all but the blessed permit is blocked from
consuming any more memory. This ensures that past this limit, only one
permit at a time can consume memory.
Such a blessed permit can be registered inactive. Before this patch, it
would still retain its blessed status when doing so. This could result
in this permit being re-queued for admission if it was evicted in the
meanwhile, potentially resulting in a complete deadlock of the semaphore:
* admission queue permits cannot be admitted because there is no memory
* admitter permits are all queued on memory, as none of them are blessed

This patch strips the blessed status from the permit when it is
registered as inactive. It also adds a unit test to verify this happens.

Fixes: #12603

Closes #12694
2023-02-01 21:02:17 +02:00
..
2022-11-16 16:30:38 +02:00
2022-09-13 19:34:22 +04:00
2022-06-22 20:16:48 +02:00
2022-05-11 16:49:31 +02:00
2022-10-20 12:33:41 +03:00
2022-07-27 16:58:52 +03:00
2023-01-18 10:38:24 +02:00