Page MenuHomePhabricator

Use lock manager for the new term store deletions
Open, LowPublic


Currently we have some noticeable number of deadlocks caused by deleting threads stepping on each other's toes (like T244115: Investigate & Fix holes for aliases in new term tables (take 3), etc.) The main problem here is that locking is left to the database to handle while we can use more better locking mechanisms before trying to change content in the database. We can use PoolCounter or RedisLockManager to reduce the number of deadlocks in the database.